@@ -8,7 +8,6 @@ import Prelude.Applicative
88import Prelude.Monad
99import Prelude.Nat
1010import Prelude.List
11−import Prelude.Foldable
1211
1312%access public export
1413%default total
@@ -110,12 +109,6 @@ cycle {a} (x :: xs) {ok = IsNonEmpty} = x :: cycle' xs
110109 cycle' [] = x :: cycle' xs
111110 cycle' (y :: ys) = y :: cycle' ys
112111
113−||| Produce a Stream that is prefixed by elements from a Foldable
114−||| @ pfx the Foldable containing elements to prepend
115−||| @ stream the Stream to prepend the elements to
116−startWith : Foldable t => (pfx : t a) -> (stream : Stream a) -> Stream a
117−startWith pfx stream = foldr (\x, xs => x :: xs) stream pfx
118−
119112Applicative Stream where
120113 pure = repeat
121114 (<*>) = zipWith apply