ituple.spad line 1 [edit on github]
This package implements 'infinite tuples' for the interpreter. The representation is a stream.
construct(t)
converts an infinite tuple to a stream.
filterUntil(p, t)
returns [x for x in t while not p(x)]
.
filterWhile(p, t)
returns [x for x in t while p(x)]
.
map(f, t)
replaces the tuple t
by [f(x) for x in t]
.
select(p, t)
returns [x for x in t | p(x)]
.
stream(f, s)
returns [s, f(s), f(f(s)), ...]
.