▲ 651 ▼ functions (lemmy.ml) submitted 11 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 11 months ago (5 children) Anyone tried lisp? Looks something like this. ((()))()()))) permalink fedilink source hideshow 5 child comments replies: [–] SlurpingPus@lemmy.world 18 points 11 months ago (4 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 11 months ago* (2 children) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 2 points 11 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 11 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent [+] Jankatarch@lemmy.world 1 point 11 months ago* [deleted] permalink fedilink source parent
[–] SlurpingPus@lemmy.world 18 points 11 months ago (4 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 11 months ago* (2 children) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 2 points 11 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 11 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent [+] Jankatarch@lemmy.world 1 point 11 months ago* [deleted] permalink fedilink source parent
[–] Jankatarch@lemmy.world 2 points 11 months ago* (2 children) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 2 child comments replies: [–] SlurpingPus@lemmy.world 2 points 11 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 11 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent
[–] SlurpingPus@lemmy.world 2 points 11 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 11 months ago In clojure it's (def (fn [])) or short (defn []). permalink fedilink source parent