lispdoc - results for when |
(when test &body forms) | Function: If the first argument is true, the rest of the forms are evaluated as a PROGN.
|
Example:(defun parse-year (year) (when year (parse-integer year))) | Mentioned in: CLtL2 - 24.1. General Error-Signaling Functions CLtL2 - 26.10. Conditional Execution CLtL2 - 26.3.2. Kinds of Loop Clauses CLtL2 - 6. Predicates CLtL2 - 6.4. Logical Operators CLtL2 - 7. Control Structure CLtL2 - 7.10.2. Rules Governing the Passing of Multiple Values CLtL2 - 7.6. Conditionals HyperSpec - 3.2.2.1.3 When Compiler Macros Are Used HyperSpec - 3.5.1.8 Errors When Calling a Next Method HyperSpec - 6.1.6.1 Examples of WHEN clause HyperSpec - Macro WHEN, UNLESS On Lisp - Chapter _28 On Lisp - Conditional Evaluation On Lisp - Creating Context On Lisp - Destructuring in Parameter Lists On Lisp - How Macros Work On Lisp - Operations on Lists PCL - and or and not PCL - conditional execution PCL - macro expansion time vs runtime PCL - macros standard control constructs PCL - the mighty loop PCL - when and unless Successful Lisp - chapter09 Successful Lisp - chapter12 Successful Lisp - chapter22 |
(eval-when situations &rest forms) | Function: EVAL-WHEN (situation*) form* Evaluate the FORMS in the specified SITUATIONS (any of :COMPILE-TOPLEVEL, :LOAD-TOPLEVEL, or :EXECUTE, or (deprecated) COMPILE, LOAD, or EVAL).
|
| Mentioned in: CLtL2 - 11.7. Package System Functions and Variables CLtL2 - 22.1.4. Standard Dispatching Macro Character Syntax CLtL2 - 25.1. The Compiler CLtL2 - 25.1.1. Compiler Diagnostics CLtL2 - 25.1.3. Compilation Environment CLtL2 - 5.3.3. Control of Time of Evaluation CLtL2 - 7.10.2. Rules Governing the Passing of Multiple Values CLtL2 - 8.1. Macro Definition CLtL2 - 9.1. Declaration Syntax HyperSpec - Special Operator EVAL-WHEN PCL - eval when PCL - foo special operators PCL - keeping track of inherited slots PCL - the public api Successful Lisp - chapter28 | |
(alexandria.0.dev:when-let bindings &body forms) | Function: Creates new variable bindings, and conditionally executes FORMS. BINDINGS must be either single binding of the form: (variable initial-form) or a list of bindings of the form: ((variable-1 initial-form-1) (variable-2 initial-form-2) ... (variable-n initial-form-n)) All initial-forms are executed sequentially in the specified order. Then all the variables are bound to the corresponding values. If all variables were bound to true values, then FORMS are executed as an implicit PROGN.
|
(alexandria.0.dev:when-let* bindings &body forms) | Function: Creates new variable bindings, and conditionally executes FORMS. BINDINGS must be either single binding of the form: (variable initial-form) or a list of bindings of the form: ((variable-1 initial-form-1) (variable-2 initial-form-2) ... (variable-n initial-form-n)) Each initial-form is executed in turn, and the variable bound to the corresponding value. Initial-form expressions can refer to variables previously bound by the WHEN-LET*. Execution of WHEN-LET* stops immediately if any initial-form evaluates to NIL. If all initial-forms evaluate to true, then FORMS are executed as an implicit PROGN.
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |