▲ 651 ▼ functions (lemmy.ml) submitted 9 months ago by cipherd@lemmy.ml to c/programmer_humor@programming.dev 118 comments fedilink hide all child comments cross-posted from: https://lemmy.ml/post/39334581
[–] save_the_humans@leminal.space 21 points 9 months ago (1 child) Anyone tried lisp? Looks something like this. ((()))()()))) permalink fedilink source hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 18 points 9 months ago (2 children) Remarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things. permalink fedilink source parent hideshow 4 child comments replies: [–] Jankatarch@lemmy.world 2 points 9 months ago* (2 children) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 4 child comments replies: [–] SlurpingPus@lemmy.world 2 points 9 months ago* In Emacs Lisp, you use one of these two: (defun funcname (arg1 arg2) (+ arg1 arg2)) (lambda (arg1 arg2) (+ arg1 arg2)) — with the latter typically being an argument to another function or macro. permalink fedilink source parent [–] stammi@feddit.org 2 points 9 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent [+] Jankatarch@lemmy.world 1 point 9 months ago* [deleted] permalink fedilink source parent
[–] SlurpingPus@lemmy.world 18 points 9 months ago (2 children) Remarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things. permalink fedilink source parent hideshow 4 child comments replies: [–] Jankatarch@lemmy.world 2 points 9 months ago* (2 children) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 4 child comments replies: [–] SlurpingPus@lemmy.world 2 points 9 months ago* In Emacs Lisp, you use one of these two: (defun funcname (arg1 arg2) (+ arg1 arg2)) (lambda (arg1 arg2) (+ arg1 arg2)) — with the latter typically being an argument to another function or macro. permalink fedilink source parent [–] stammi@feddit.org 2 points 9 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent [+] Jankatarch@lemmy.world 1 point 9 months ago* [deleted] permalink fedilink source parent
[–] Jankatarch@lemmy.world 2 points 9 months ago* (2 children) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 4 child comments replies: [–] SlurpingPus@lemmy.world 2 points 9 months ago* In Emacs Lisp, you use one of these two: (defun funcname (arg1 arg2) (+ arg1 arg2)) (lambda (arg1 arg2) (+ arg1 arg2)) — with the latter typically being an argument to another function or macro. permalink fedilink source parent [–] stammi@feddit.org 2 points 9 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent
[–] SlurpingPus@lemmy.world 2 points 9 months ago* In Emacs Lisp, you use one of these two: (defun funcname (arg1 arg2) (+ arg1 arg2)) (lambda (arg1 arg2) (+ arg1 arg2)) — with the latter typically being an argument to another function or macro. permalink fedilink source parent
[–] stammi@feddit.org 2 points 9 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent