Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Adventures of an imperative programmer in the land of fp. Parent comment
Your example would be translated as:
(lambda (a b) (+ a b)) ;; making an anonymous function
(define add (lambda (a b) (+ a b))); ;; calling the anonymous function "add"
(define (add a b) (+ a b)) ;; syntactic sugar for above.
There are no comments on this comment yet.
Your example would be translated as:
(lambda (a b) (+ a b)) ;; making an anonymous function
(define add (lambda (a b) (+ a b))); ;; calling the anonymous function "add"
(define (add a b) (+ a b)) ;; syntactic sugar for above.