Operators
⚓
⚓
⚓
"Scope establisher" | "Invoker" |
---|---|
block | return-from |
catch | throw |
tagbody | go |
unwind-protect | (automatic) |
⚓
⚓
⚓
⚓
⚓
⚓
⚓
⚓
⚓
⚓
⚓
⚓
- declaim
- destructuring-bind
- lambda
- make-method / call-method
- multiple-value-bind / multiple-value-list / nth-value
- print-unreadable-object
- prog / prog*
- prog1 / prog2
- return
- with-accessors / with-slots
- with-input-from-string / with-output-to-string
- with-open-file / with-open-stream
- with-standard-io-syntax
⚓
⚓
- special-operator-p
- (setf macro-function) / (setf compiler-macro-function)
- (setf symbol-value) / (setf symbol-function) / (setf fdefinition)
- makunbound / fmakunbound
⚓
⚓
⚓
⚓
See also bit arrays.
⚓
- + - * /
- < <= /= = >= >
- 1+ / 1-
- abs
- arithmetic-error-operation / arithmetic-error-operands
- cis
- complex / realpart / imagpart / complexp / conjugate
- decode-float / scale-float / float-radix / float-sign / float-digits / float-precision / integer-decode-float
- numerator / denominator
- evenp / oddp
- expt / exp
- float
- floatp
- gcd / lcm
- integerp
- log
- make-random-state
- min / max
- mod / rem
- numberp
- parse-integer
- phase
- random / random-state-p
- rational / rationalize / rationalp
- realp
- sqrt / isqrt
- signum / minusp / zerop / plusp
⚓
⚓
⚓
All one-dimensional arrays (arrays of rank one) are vectors. All vectors are sequences.
If a vector has a fill-pointer, then only its active elements (those before the fill-pointer) are considered part of the sequence.
- (setf fill-pointer)
- simple-vector-p
- (setf svref)
- vector
- vector-push / vector-push-extend / vector-pop
- vectorp
⚓
All vectors with an element-type of character (or one of its subtypes) are strings.
Potentially sharing | Always destructive |
---|---|
string-downcase | nstring-downcase |
string-upcase | nstring-upcase |
string-capitalize | nstring-capitalize |
- (setf char) / (setf schar)
- make-string
- simple-string-p
- string
- string< / string<= / string/= / string= / string>= / string>
- string-lessp / string-not-greaterp / string-not-equal / string-equal / string-not-lessp / string-greaterp
- string-trim / string-left-trim / string-right-trim
- stringp
⚓
See also integers as bits.
All vectors with an element-type of bit are bit-vectors, which is one of the standard specialized array types.
Functions that accept bit-vectors typically also accept bit-arrays, though those are not a specialized array type. (Actually that's not true. Fixme...)
⚓
⚓
⚓
- close
- input-stream-p / output-stream-p
- interactive-stream-p / y-or-n-p / yes-or-no-p
- make-broadcast-stream / broadcast-stream-streams
- make-concatenated-stream / concatenated-stream-streams
- make-echo-stream / echo-stream-input-stream / echo-stream-output-stream
- make-string-input-stream / make-string-output-stream / get-output-stream-string
- make-synonym-stream / synonym-stream-symbol
- make-two-way-stream / two-way-stream-input-stream / two-way-stream-output-stream
- open-stream-p
- stream-element-type / stream-external-format
- stream-error-stream
- streamp
⚓
⚓
⚓
- copy-pprint-dispatch
- finish-output / force-output / clear-output
- format / formatter
- pprint-dispatch
- pprint-fill / pprint-linear / pprint-tabular
- pprint-newline / pprint-indent / pprint-tab
- prin1 / prin1-to-string
- princ / princ-to-string
- print / pprint
- (defgeneric print-object)
- print-not-readable-object
- set-pprint-dispatch
- write / write-to-string
- write-byte
- write-char
- write-sequence
- write-string / write-line
- terpri / fresh-line
⚓
⚓
- enough-namestring
- host-namestring / directory-namestring
- logical-pathname
- (setf logical-pathname-translations) / load-logical-pathname-translations
- make-pathname
- merge-pathnames
- namestring
- parse-namestring
- pathname
- pathname-host / pathname-device / pathname-directory / pathname-name / pathname-type / pathname-version
- pathname-match-p
- pathnamep
- translate-logical-pathname
- translate-pathname
- wild-pathname-p
⚓
⚓
- apropos-list
- copy-symbol
- export / unexport
- find-all-symbols
- find-symbol
- gensym / gentemp
- (setf get) / remprop
- keywordp
- make-symbol
- shadow
- shadowing-import
- symbol-name
- (setf symbol-plist)
- (setf symbol-value) / (setf symbol-function) / set
- symbolp
⚓
⚓
⚓
⚓
Structurally, an alist is like a proper list of associations.
Each association is a cons whose car is the key and whose cdr is the value.
⚓
- (setf getf)
- get-properties
⚓
⚓
Potentially sharing | Also destructive |
---|---|
union | nunion |
intersection | nintersection |
set-difference | nset-difference |
set-exclusive-or | nset-exclusive-or |
⚓
All proper lists and vectors are sequences.
- concatenate
- copy-seq
- (setf elt)
- every / some / notevery / notany
- fill
- length
- make-sequence
- map / map-into
- merge
- mismatch
- reduce
- remove-duplicates / delete-duplicates
- replace
- reverse / nreverse
- search
- (setf subseq)
- sort / stable-sort
⚓
- alphanumericp / alpha-char-p / digit-char / digit-char-p
- both-case-p / lower-case-p / upper-case-p
- char< / char<= / char/= / char= / char>= / char>
- char-lessp / char-not-greaterp / char-not-equal / char-equal / char-not-lessp / char-greaterp
- char-code / code-char / char-int
- char-downcase / char-upcase
- char-name / name-char
- character
- characterp
- standard-char-p / graphic-char-p
⚓
⚓
⚓
⚓
All functions in the following table are generic functions.
- class-of
- (defgeneric describe-object)
- (setf slot-value) / slot-exists-p / slot-boundp / slot-makunbound
- (defgeneric slot-missing) / (defgeneric slot-unbound)
⚓
- (defgeneric add-method) / (defgeneric remove-method)
- (defgeneric compute-applicable-methods)
- (defgeneric find-method)
- (defgeneric function-keywords)
- (defgeneric method-qualifiers)
- (defgeneric no-applicable-method) / (defgeneric no-next-method)
⚓
⚓
- apply / funcall
- boundp / fboundp
- call-next-method / next-method-p
- coerce
- compile
- compiled-function-p
- complement
- constantly / identity
- constantp
- copy-structure
- decode-universal-time
- (defgeneric documentation)
- eq / eql / equal / equalp
- encode-universal-time
- ensure-generic-function
- eval
- (setf find-class) / (defgeneric class-name)
- function-lambda-expression
- functionp
- get-decoded-time
- get-internal-real-time
- get-internal-run-time
- get-setf-expansion
- get-universal-time
- lisp-implementation-type / lisp-implementation-version
- load
- machine-instance / machine-type / machine-version
- macroexpand / macroexpand-1
- (defgeneric make-load-form) / make-load-form-saving-slots
- not
- proclaim
- provide
- require
- short-site-name / long-site-name
- sleep
- software-type / software-version
- subtypep
- type-of
- typep
- upgraded-complex-part-type
- (setf values)
- values-list