6.3.90.900
25 Sequences
NOTE: This library is deprecated; use racket/sequence, instead. The contents of this module, with the exceptions below, have been merged with racket/sequence.
(require unstable/sequence) | package: unstable-lib |
procedure
(in-sequence-forever seq val) → sequence?
seq : sequence? val : any/c
Produces a sequence whose values are the elements of seq, followed by val repeated.
procedure
(sequence-lift f seq) → sequence?
f : procedure? seq : sequence?
Produces the sequence of f applied to each element of seq.
Example:
> (for/list ([x (sequence-lift add1 (in-range 10))]) x) '(1 2 3 4 5 6 7 8 9 10)