Next: , Previous: Loading, Up: Read/Load/Eval


28.5 Delayed Evaluation

[delay]

— Scheme Procedure: promise? obj
— C Function: scm_promise_p (obj)

Return true if obj is a promise, i.e. a delayed computation (see Delayed evaluation).

— Scheme Procedure: force x
— C Function: scm_force (x)

Compute promise x and return its value, if it has not been computed yet. Otherwise just return the previously computed value.