sqrt, expt, min, max. (min -1 2 -3 4 -5 6) ==> -5
(third '(A B C D)) ==> C
rest, last, nth, length Note that nth starts counting at 0, not 1. (nth 2 '(A B C D)) ==> C
cons, append, list - basic list construction functions
Numeric Predicates: evenp, oddp, =, <, >, <=, >=
General Predicates: null, equal, eq. The basic rule is that "eq" may not work for lists or strings.
(equal '(A B) (cons 'A '(B))) ==> t
(eq '(A B) (cons 'A '(B))) ==> NIL
Logical Predicates: and, or, not
(not (and (= 7 (+ 2 5)) (evenp 8))) ==> NIL
" ' " (or quote) - returns argument literally
defun - defines a function
if, cond, case - conditional operators. There are more.
(mapcar #'evenp '(1 2 3 4)) ==> (NIL t NIL t)
(apply #'+ '(1 2 3 4)) ==> 10
(funcall #'+ 1 2 3 4) ==> 10
(find-if #'oddp '(2 4 6 1 3 5)) ==> 1
(remove-if #'oddp '(2 4 6 1 3 5)) ==> (2 4 6)
load - loads the indicated file, evaluating all Lisp forms in file. (load "foo.lisp") loads the file foo.lisp from the directory you were in when you entered Lisp.
compile-file - takes indicated file, and creates compiled xxxx.wfasl file, which may be loaded in place of lisp file for faster execution. See also compile for compiling an individual function.
dribble - makes a file that records an interactive session. (dribble "filename") starts it, (dribble) ends it
apropos - Searches for all currently defined Lisp symbols (function and variable names) containing given substring. Useful in conjunction with "describe" to find desired Lisp capability on-line.
(apropos 'concat) ==> all function names containing "concat", including "concatenate".
describe - On-line help for specified function name. For instance, once you
discovered that "concatenate" is the function to concatenate strings, then
(describe 'concatenate)
would give brief information on using it.