• SlurpingPus@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    11 hours 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.