> What role does the ? operator play. It looks like it is creating a > variable name. > Thanks. >
In clojure (and other languages like Ruby) the ? is not an operator, it's actually part of the function name. Normally ? means that the function returns a boolean. Think of it as asking a question, so empty? would return true if the collection is empty. On the other hand you'll also see ! which means the function modifies the one of the arguments. Example (with fake functions): (empty? []) true (empty! [2 3]) [] These are just some ways of letting the user know how the function should be used. Timothy Baldridge -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en