Fork me on GitHub
#clojure-sg
<
2015-06-25
>
jdevuyst00:06:52

@spinningarrow: It's equivalent to (fn [x _] (if true x)), if that helps. So with 'booleans' from lambda calculus you don't need if-statements because the 'booleans' are functions already.

jdevuyst00:06:22

So rather than writing (if a x y), you would just write (a x y).

spinningarrow02:06:16

Thanks @jdevuyst! Following up on that, how does one write a function that returns a Boolean value, like a predicate?