Drop up to n
values from the stream s
.
Equations
- Stream.drop s 0 = s
- Stream.drop s n.succ = match Stream.next? s with | none => s | some (fst, s) => Stream.drop s n
Instances For
Read up to n
values from the stream s
as a list from first to last.
Equations
Instances For
Tail recursive version of Stream.take
.
Equations
- Stream.takeTR s n = Stream.takeTR.loop s [] n
Instances For
Inner loop for Stream.takeTR
.
Equations
Instances For
@[simp]