Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on One Major Difference Between Clojure and Common Lisp. Parent comment
Example:
Lisp-2:
(defun new-map (f l) (dolist (e l) (funcall f e)))
(defun new-map (f l) (dolist (e l) (f e)))
Lisp-2
(defun foo (l) (flet ((new-map (f l) (dolist (e l) (f e)))) (new-map (function sin) l)))
(defun foo (l) (let ((new-map (lambda (f l) (dolist (e l) (f e))))) (new-map sin l)))
There are no comments on this comment yet.
Example:
Lisp-2:
Lisp-1: Another example:Lisp-2
Lisp-1 To make it easier, just define FUNCALL, FUNCTION and FLET in Lisp-1...