Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know about the other lisp dialects, but the anonymous function is actually not needed in the Clojure version:

(filter even? [1 2 3 4])



Same for the others.

    (filter even? '(1 2 3 4))
    (remove-it-not 'evenp '(1 2 3 4))


I think you mean 'remove-IF-not.


Oh, right! even? is already a function, d'oh!


Or:

    (remove-if 'oddp '(1 2 3 4))




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: