▲ 625 ▼ functions (lemmy.ml) submitted 11 months ago by cipherd@lemmy.ml to c/programmer_humor@programming.dev 95 comments fedilink hide all child comments cross-posted from: https://lemmy.ml/post/39334581
[–] save_the_humans@leminal.space 20 points 11 months ago (3 children) Anyone tried lisp? Looks something like this. ((()))()()))) permalink fedilink source hideshow 3 child comments replies: [–] SlurpingPus@lemmy.world 12 points 11 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 2 child comments replies: [–] Jankatarch@lemmy.world 2 points 11 months ago* (1 child) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 1 child comment replies: [–] SlurpingPus@lemmy.world 1 point 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
[–] SlurpingPus@lemmy.world 12 points 11 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 2 child comments replies: [–] Jankatarch@lemmy.world 2 points 11 months ago* (1 child) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 1 child comment replies: [–] SlurpingPus@lemmy.world 1 point 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
[–] Jankatarch@lemmy.world 2 points 11 months ago* (1 child) Isn't it more like foo(){…} -> (define foo (lambda ())) tbf? permalink fedilink source parent hideshow 1 child comment replies: [–] SlurpingPus@lemmy.world 1 point 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
[–] SlurpingPus@lemmy.world 1 point 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