• [object Object]@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        1 个月前

        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.