Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
semisight
on Feb 3, 2012
|
parent
|
context
|
favorite
| on:
Why I love Common Lisp and hate Java, part II – co...
Which can be done just as well in lisps. The whole point was to show it in a way that didn't confuse the Java devs.
;Clojure example (defn get-from-list [list pred] (reduce #(if (pred %1 %2) %1 %2) list))
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
;Clojure example (defn get-from-list [list pred] (reduce #(if (pred %1 %2) %1 %2) list))