I'm taking a look at the excellent Clojure tutorial here. In one of the examples it has Clojure code along the following lines:
(def vowel? (set "aeiou"))
This makes vowel return true for vowels and false for consonants:
(vowel? (first "abc")) ; => true
(vowel? (first "cba")) ; => false
Why is this? I'm assuming it has something to do with the question mark behind the variable name. Couldn't find anything right away in the tutorial...
Edit I just realized vowel?
doesn't return true or false but rather the element itself or nil. See my own answer.