annotate sequences/lazy_cons.m @ 2:7357e1dc2ad6

Simplified scheduler library with new schedule representation.
author samer
date Sat, 22 Dec 2012 16:17:51 +0000
parents 672052bd81f8
children 3f77126f7b5f
rev   line source
samer@0 1 function Y=lazy_cons(X,Z)
samer@0 2 % lazy_cons - Make sequence given head and tail
samer@0 3 %
samer@0 4 % lazy_cons :: A, (unit -> seq A) -> seq A.
samer@0 5
samer@0 6 Y=data(size(X),'datafn',@(o)X,'nextfn',@(o)Z(), ...
samer@0 7 'charfn',@(o)[tostring(X) ' | ' tostring(Z) '()']);
samer@0 8