> (defalias 'plus #'+)
> (defalias 'quotient #'/)
> (defalias 'times #'*)*
> (defalias 'difference #'-)*
Looks like we also need a defmacro for def that is used much further in the article:
> > (def rac (lambda (lyst) (car (reverse lyst))))
I mean the above example fails in Emacs:
ELISP> (def rac (lambda (lyst) (car (reverse lyst)))) *** Eval error *** Symbol’s function definition is void: def
ELISP> (defmacro def (name lambda-def) `(defalias ',name ,lambda-def)) def
ELISP> (def rac (lambda (lyst) (car (reverse lyst)))) rac ELISP> (rac '(your brains)) brains
> (defalias 'plus #'+)
> (defalias 'quotient #'/)
> (defalias 'times #'*)*
> (defalias 'difference #'-)*
Looks like we also need a defmacro for def that is used much further in the article:
> > (def rac (lambda (lyst) (car (reverse lyst))))
I mean the above example fails in Emacs:
If we want the above example to work, we need to define def like this: Now the previous example, as presented in the article, works fine: