cross-posted from: https://lemmy.ml/post/39334581

you are viewing a single comment's thread
view the rest of the comments
[–] 18 points 10 months ago (4 children)

Remarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 10 months ago* (2 children)

    Isn't it more like
    foo(){…} -> (define foo (lambda ()))
    tbf?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 10 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.

  • source
  • parent