Changeset 36878 in project


Ignore:
Timestamp:
11/24/18 16:00:35 (3 weeks ago)
Author:
syn
Message:

lazy-seq: Update docs to match latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/lazy-seq

    r34034 r36878  
    4646
    4747
     48<procedure>(lazy-list . elements)</procedure>
     49
     50Returns a realized {{lazy-seq}} of {{elements}}.
     51
     52
     53<constant>lazy-null</constant>
     54
     55A null {{lazy-seq}}.
     56
     57
    4858<procedure>(lazy-seq->list seq)</procedure>
    4959
     
    7787Returns a {{lazy-seq}} representing the concatenation of {{seqs}}.
    7888
     89<procedure>(lazy-concatenate seq)</procedure>
     90
     91Returns a {{lazy-seq}} representing the concatenation of the {{lazy-seq}}s contained in {{seq}}.
    7992
    8093<procedure>(lazy-append-map proc seqs ...)</procedure>
     
    180193procedure.
    181194
     195
     196<procedure>(lazy-seq->string seq)</procedure>
     197
     198Completely realizes a {{seq}} of characters and returns a string
     199consisting of those characters. Should not be called on infinite
     200sequences.
     201
     202
     203<procedure>(string->lazy-seq string)</procedure>
     204
     205Turns {{string}} into a realized {{lazy-seq}} of characters.
    182206
    183207=== Examples
     
    217241==== Version history
    218242
     243; 2 : First version to be compatible with CHICKEN 5. Various code improvements.
     244; 0.0.7 : Add lazy-seq->string and string->lazy-seq
     245; 0.0.6 : Add {{lazy-fold}}, {{lazy-concatenate}} and {{lazy-flatten}} (thanks to Caolan McMahon for the latter two). Make printer realize head.
     246; 0.0.5 : Fix tests
     247; 0.0.4 : Add {{lazy-append-map}}, {{lazy-null}} and {{lazy-list}}
    219248; 0.0.3 : Add {{lazy-length}}, {{lazy-reverse}} and {{lazy-cycle}}
    220249; 0.0.2 : Add {{lazy-take-while}} and {{lazy-drop-while}}
     
    224253
    225254
    226   Copyright (c) 2012, Moritz Heidkamp
     255  Copyright (c) 2018, Moritz Heidkamp
    227256  All rights reserved.
    228257 
Note: See TracChangeset for help on using the changeset viewer.