3 ms·
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 Sc
by zeveb 10y ago
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 10y agoThanks. Couldn't remember funcall but I knew there was a better way.