Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zeveb
on Oct 26, 2016
|
parent
|
context
|
favorite
| on:
Technical Issues of Separation in Lisp Function Ce...
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)
Jtsummers
on Oct 27, 2016
[–]
Thanks. Couldn't remember funcall but I knew there was a better way.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: