Changeset 38175 in project


Ignore:
Timestamp:
02/06/20 14:13:19 (2 weeks ago)
Author:
juergen
Message:

biglists 0.4: dependency on bindings removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/biglists

    r37761 r38175  
    4343Hence At can access even finite biglists at any position, it would
    4444simply return eos past the length of finite biglists.
    45 
    46 * Pattern matching on biglists is available via the bindings egg.
    47 
    48 To achieve that, bind-seq-db is already updated.
    4945
    5046* List comprehensions work as well for biglists.
     
    574570=== Dependencies
    575571
    576 bindings
     572None
    577573
    578574=== Examples
     
    580576<enscript highlight=scheme>
    581577
    582 (import biglists bindings)
     578(import biglists)
    583579
    584580(define ones (Cons 1 ones #f))
     
    631627(BigList->list (Iterate-times add1 5 1))
    632628  ;-> '(1 2 3 4 5)
    633 
    634 (bind (x . xs) integers (list x (BigList->list 5 xs)))
    635   ;-> '(0 (1 2 3 4 5))
    636 
    637 (bind (x (y . ys) z) (List 1 integers 3)
    638   (list x y z (BigList->list 5 ys)))
    639   ;-> '(1 0 3 (1 2 3 4 5))
    640629
    641630(BigList->list (Collect (add1 x) (x (List 0 1 2 3)))) ;  map
     
    706695== Version History
    707696
     697; 0.4 : dependency on bindings removed
    708698; 0.3 : For macro renamed Collect
    709699; 0.2 : syntax of For changed
Note: See TracChangeset for help on using the changeset viewer.