www.delorie.com/gnu/docs/guile/guile_341.html   search  
 
Buy GNU books!


Guile Reference Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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 section `Delayed evaluation' in The Revised^5 Report on Scheme).

Scheme Procedure: force x
C Function: scm_force (x)
If the promise x has not been computed yet, compute and return x, otherwise just return the previously computed value.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003