Hi, The ? is merely a convention used to name predicate functions (ie. functions that return true or false).
It is not enforced, but clojure.core follows it. It's a good idea to follow it. I think ruby has a similar convention. Thanks, Ambrose On Thu, May 19, 2011 at 9:09 PM, octopusgrabbus <[email protected]>wrote: > Given the following function > > > (defn proint-down-from [x] > (when (pos? x) > (println x) > (recur (dec x)))) > > What role does the ? operator play. It looks like it is creating a > variable name. > Thanks. > > -- > 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 -- 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
