Changeset 37400 in project for wiki


Ignore:
Timestamp:
03/17/19 16:48:40 (19 months ago)
Author:
juergen
Message:

simple-loops 1.0

Location:
wiki/eggref/5
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/biglists

    r37379 r37400  
    2828* Lazy biglists are either finite or infinite.
    2929
    30 * All biglists are basically constructed with the macro Cons:
     30* All biglists are basically constructed with the macro Cons.
    3131
    3232This macro has two arguments for eager biglists, and an additional third
    3333argument, finite?, for lazy biglists.
    3434
    35 * The empty lazy biglist, nil, is an infinite sequence of eos objects.
    36 
     35* The empty lazy biglist is the eos objects.
     36
     37* The emppy eager biglist is '(), as usual.
     38
     39* There are no Car and Cdr routines, but First and Rest instead.
     40
     41They behave differently: First returns eos at the empty biglist, and Rest
     42returns itself at the empty biglist.
    3743Hence At can access even finite biglists at any position, it would
    3844simply return eos past the length of finite biglists.
    39 
    40 * The emppy eager biglist is '(), as usual.
    41 
    42 But to be consistent with the point above, there are no Car and Cdr
    43 routines, but First and Rest instead, which behave differently:
    44 First returns eos at the empty biglist, and Rest returns itself at the
    45 empty biglist.
    4645
    4746* Pattern matching on biglists is available via the bindings egg.
     
    204203==== Zip
    205204
    206 ==== integers
    207 
    208 ==== nil
    209 
    210205==== eos
    211206
     
    220215(import biglists bindings)
    221216
    222 (First nil) ;-> eos
     217(define ones (Cons 1 ones #f))
     218
     219(First eos) ;-> eos
    223220
    224221(At 2 '(0 1 2 3 4)) ;-> 2
     
    303300== Last update
    304301
    305 Mar 15, 2019
     302Mar 17, 2019
    306303
    307304== Author
Note: See TracChangeset for help on using the changeset viewer.