Changeset 14177 in project


Ignore:
Timestamp:
04/08/09 06:58:55 (11 years ago)
Author:
Kon Lovett
Message:

Release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/srfi-41

    r14119 r14177  
    1111
    1212See the [[http://srfi.schemers.org/srfi-41/srfi-41.html|SRFI-41 Document]].
     13
    1314
    1415=== Primitive
     
    2223==== stream?
    2324
    24 <procedure>(stream? OBJECT)</procedure>
     25<procedure>(stream? OBJECT) => BOOLEAN</procedure>
    2526
    2627==== stream-pair?
    2728
    28 <procedure>(stream-pair? OBJECT)</procedure>
     29<procedure>(stream-pair? OBJECT) => BOOLEAN</procedure>
    2930
    3031==== stream-null?
    3132
    32 <procedure>(stream-null? OBJECT)</procedure>
     33<procedure>(stream-null? OBJECT) => BOOLEAN</procedure>
     34
     35==== stream-occupied?
     36
     37<procedure>(stream-occupied? OBJECT) => BOOLEAN</procedure>
     38
     39{{(not (stream-null? OBJECT))}}
    3340
    3441==== stream-null
     
    6370==== define-stream
    6471
    65 <syntax>(define-stream (NAME [FORMAL ...]) BODY ...)</syntax>
     72<syntax>(define-stream (NAME [FORMAL...]) BODY...)</syntax>
    6673
    6774==== stream-of
     
    7582==== stream-let
    7683
    77 <syntax>(stream-let TAG ((NAME VALUE) ...) BODY ...)</syntax>
     84<syntax>(stream-let TAG ((NAME VALUE)...) BODY...)</syntax>
    7885
    7986==== stream-match
    8087
    81 <syntax>(stream-match STREAM-EXPRESSION CLAUSE ...)</syntax>
     88<syntax>(stream-match STREAM-EXPRESSION CLAUSE...)</syntax>
    8289
    8390==== list->stream
     
    95102==== stream-append
    96103
    97 <procedure>(stream-append STREAM ...)</procedure>
     104<procedure>(stream-append STREAM...)</procedure>
    98105
    99106==== stream-concat
     
    115122==== stream-fold
    116123
    117 <procedure>(stream-fold PROCEDURE BASE STREAM)</procedure>
     124<procedure>(stream-fold PROCEDURE BASE STREAM...)</procedure>
    118125
    119126==== stream-for-each
    120127
    121 <procedure>(stream-for-each PROCEDURE STREAM ...)</procedure>
     128<procedure>(stream-for-each PROCEDURE STREAM...)</procedure>
    122129
    123130==== stream-map
    124131
    125 <procedure>(stream-map PROCEDURE STREAM ...)</procedure>
     132<procedure>(stream-map PROCEDURE STREAM...)</procedure>
    126133
    127134==== stream-from
     
    171178==== stream-zip
    172179
    173 <procedure>(stream-zip STREAM ...)</procedure>
     180<procedure>(stream-zip STREAM...)</procedure>
    174181
    175182
     
    327334
    328335<enscript language=scheme>
    329 (require-extension srfi-41)
    330 ...
    331 (import streams-primitive streams-derived)
     336(require-extension streams)
    332337</enscript>
    333338
     
    336341
    337342<enscript language=scheme>
     343(require-extension streams)
     344
    338345(define (sigma FUNCTION m n)
    339346  (stream-fold + 0 (stream-map FUNCTION (stream-range m (+ n 1)))))
Note: See TracChangeset for help on using the changeset viewer.