Changeset 36878 in project
- Timestamp:
- 11/24/18 16:00:35 (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/eggref/4/lazy-seq
r34034 r36878 46 46 47 47 48 <procedure>(lazy-list . elements)</procedure> 49 50 Returns a realized {{lazy-seq}} of {{elements}}. 51 52 53 <constant>lazy-null</constant> 54 55 A null {{lazy-seq}}. 56 57 48 58 <procedure>(lazy-seq->list seq)</procedure> 49 59 … … 77 87 Returns a {{lazy-seq}} representing the concatenation of {{seqs}}. 78 88 89 <procedure>(lazy-concatenate seq)</procedure> 90 91 Returns a {{lazy-seq}} representing the concatenation of the {{lazy-seq}}s contained in {{seq}}. 79 92 80 93 <procedure>(lazy-append-map proc seqs ...)</procedure> … … 180 193 procedure. 181 194 195 196 <procedure>(lazy-seq->string seq)</procedure> 197 198 Completely realizes a {{seq}} of characters and returns a string 199 consisting of those characters. Should not be called on infinite 200 sequences. 201 202 203 <procedure>(string->lazy-seq string)</procedure> 204 205 Turns {{string}} into a realized {{lazy-seq}} of characters. 182 206 183 207 === Examples … … 217 241 ==== Version history 218 242 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}} 219 248 ; 0.0.3 : Add {{lazy-length}}, {{lazy-reverse}} and {{lazy-cycle}} 220 249 ; 0.0.2 : Add {{lazy-take-while}} and {{lazy-drop-while}} … … 224 253 225 254 226 Copyright (c) 201 2, Moritz Heidkamp255 Copyright (c) 2018, Moritz Heidkamp 227 256 All rights reserved. 228 257
Note: See TracChangeset
for help on using the changeset viewer.