eval expression
Evaluates the expression.
|
>(eval '(+ 1 2)) 3 |
apply fn arglist
Applies the function to the arguments.
|
>(apply + '(1 2)) 3 |
ssexpand symbol
Expands special syntax (: ! . or ~). The :
character indicates composition. The ~ indicates complementing. The .
applies the first value to the remainder. The ! is like . except the
arguments are quoted.
|
>(ssexpand 'x:~y:z) (compose x (complement y) z) >(ssexpand '+.1.2) (+ 1 2) >(ssexpand '+!1!2) (+ (quote 1) (quote 2)) >(ssexpand 'cons!a!b) (cons (quote a) (quote b)) |
ssyntax symbol
Tests if the symbol contains special syntax (: ! . or ~).
|
>(ssyntax 'x:y) t |
compose [function] ...
Composes the functions.
|
>((compose sqrt:len) "abcd") 2 |
complement function
Creates a procedure that is the complement of
function. |
>(map (complement odd) '(1 2 3 4 5)) (nil t nil t nil) |
idfn x
Identity function; returns x.
|
Copyright 2008 Ken Shirriff.