SRFI-45: add promise? predicate.
* module/srfi/srfi-45.scm (promise?): Export. * doc/ref/srfi-modules.texi (SRFI-45): Update docs. * test-suite/tests/srfi-45.test: Add test. Add FSF copyright for 2010 and 2013. Add missing year to André van Tonder's copyright notice.
This commit is contained in:
parent
65ad02b96d
commit
d291d7990d
3 changed files with 22 additions and 6 deletions
|
|
@ -3845,6 +3845,13 @@ words, no program that uses the R5RS definitions of delay and force will
|
|||
break if those definition are replaced by the SRFI-45 definitions of
|
||||
delay and force.
|
||||
|
||||
Guile also adds @code{promise?} to the list of exports, which is not
|
||||
part of the official SRFI-45.
|
||||
|
||||
@deffn {Scheme Procedure} promise? obj
|
||||
Return true if @var{obj} is an SRFI-45 promise, otherwise return false.
|
||||
@end deffn
|
||||
|
||||
@deffn {Scheme Syntax} delay expression
|
||||
Takes an expression of arbitrary type @var{a} and returns a promise of
|
||||
type @code{(Promise @var{a})} which at some point in the future may be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue