lispdoc - results for assert |
(assert test-form &optional places datum &rest arguments) | Function: Signals an error if the value of test-form is nil. Continuing from this error using the CONTINUE restart will allow the user to alter the value of some locations known to SETF, starting over with test-form. Returns NIL.
|
Example:(defun sqr (x) "Multiply x by itself." (assert (numberp x)) (* x x)) | Mentioned in: CLtL2 - 24.1. General Error-Signaling Functions CLtL2 - 24.2. Specialized Error-Signaling Forms and Macros CLtL2 - 29.3.3. Handling Conditions CLtL2 - 29.4.1. Signaling Conditions CLtL2 - 29.4.2. Assertions CLtL2 - 7.2. Generalized Variables HyperSpec - Macro ASSERT Successful Lisp - assert Successful Lisp - chapter30 Successful Lisp - condition designator |
(chunga:assert-char stream expected-char) | Function: Reads the next character from STREAM and checks if it is the character EXPECTED-CHAR. Signals an error otherwise.
|
(sort sequence predicate &rest args &key key) | Function: Destructively sort SEQUENCE. PREDICATE should return non-NIL if ARG1 is to precede ARG2.
|
Example:(defun sorted-rows (rows schema order-by) (sort (copy-seq rows) (row-comparator order-by schema))) | Mentioned in: CLtL2 - 14.5. Sorting and Merging HyperSpec - Function SORT, STABLE-SORT On Lisp - Chapter _28 On Lisp - Lazy Evaluation On Lisp - New Utilities (Computation at Compile-Time) PCL - anonymous functions PCL - combining recycling with shared structure PCL - other structures PCL - sorting and merging Successful Lisp - chapter13 Successful Lisp - closures |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |