ah, ok. thanks. On Tue, Nov 27, 2012 at 7:03 PM, Stephen Compall <[email protected]> wrote: > On Tue, 2012-11-27 at 10:34 -0800, Ben Wolfson wrote: >> What's going on? Where'd my try* go? > > try* isn't general enough to accept some macroexpansions, because list? > is not the predicate you want. > > repl> (->> (macroexpand-1 '(g 2 3)) (drop 3) first) > (catch [java.lang.Exception java.lang.AssertionError] e__902__auto__ 6) > repl> (list? *1) > false > repl> (list? '(catch [java.lang.Exception java.lang.AssertionError] > e__902__auto__ 6)) > true > repl> (->> (macroexpand-1 '(g 2 3)) (drop 3) first class) > clojure.lang.Cons > > quasiquote tends to produce conses. Compare seq?, sequential?, and > incubator's seqable? to find the predicate you want. > > -- > Stephen Compall > "^aCollection allSatisfy: [:each | aCondition]": less is better than > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en
-- Ben Wolfson "Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure." [Larousse, "Drink" entry] -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
