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

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: