ch2_3_funs
LabLISP built-in functions
Like Common LISP, LabLISP has many built-in functions. All of them are function objects with properties that are analogical to Common LISP. They can be passed as arguments to other operators, can be returned as a result from operations and carry lexical closures. The built-in functions are implemented as C++ method calls, and take single eval step, apart from the higher order management functions. Those might need more than one eval call.
The functions are listed here in groups by application area:
- Functions of a real variable:
SIN
,COS
,SEC
,CSC
,TAN
,COT
,SIN-D
,COS-D
,SEC-D
,CSC-D
,TAN-D
,COT-D
,ASIN
,ACOS
,ASEC
,ACSC
,ATAN
,ACOT
,ASIN-D
,ACOS-D
,ASEC-D
,ACSC-D
,ATAN-D
,ACOT-D
,SQR
,SQRT
,EXP
,LN
,10POW
,LOG
,ABS
- Predicates:
EQ
,EQUAL
,NOT
,ATOM
,CONSP
,LISTP
,PROPER-LIST-P
,SYMBOLP
,STRINGP
,NUMBERP
,INTEGERP
,ZEROP
,ODDP
,EVENP
,FUNCTIONP
,PACKAGEP
,BOUNDP
,FBOUNDP
,SPECIAL-OPERATOR-P
- List processing:
CONS
,LIST
,APPEND
,NCONC
,LENGTH
,CAR
-CDDDDR
,FIRST
-TENTH
,NTH
,NTHCDR
,REST
,LAST
- Package and symbol operations () :
SYMBOL-VALUE
,SYMBOL-FUNCTION
,SYMBOL-NAME
,FIND-SYMBOL
,MAKE-SYMBOL
,INTERN
,SYMBOL-PACKAGE
,PACKGAGE-NAME
,FIND-PACKAGE
,MAKE-PACKAGE
,IN-PACKAGE
,USE-PACKAGE
,UNUSE-PACKAGE
,IMPORT
,EXPORT
,UNINTERN
,UNEXPORT
,LIST-ALL-PACKAGES
,PACKAGE-USE-LIST
,PACKAGE-USED-BY-LIST
,PACKAGE-INTERNAL-SYMBOLS
,PACKAGE-EXTERNAL-SYMBOLS
- High order management:
FUNCALL
,APPLY
,MAPCAR
,MAPLIST
,MAPCAN
,MAPCON
,MAPC
,MAPL
,MACROEXPAND
,MACROEXPAND-1
,LOAD
,SET
,VALUES
,NAME-PROCESS
,KILL
,SELF-KILL
ch2_3_funs.txt · Last modified: 2025/01/20 09:28 by admin