Hacker News new | past | comments | ask | show | jobs | submit login

I'm pretty sure that the lispy way to write the example would be:

    (defun g (f) (funcall f 3))
    (g #'inc)
Which I think is actually prettier than the Scheme:

    (define g (lambda (f) (f 3))
    (g inc)



Thanks. Couldn't remember funcall but I knew there was a better way.




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

Search: