on master help sign in
Disambiguate Stream
commite24ce58d94a5359842e69609c1028f61662e6de5 authorDavid Christiansen <david@davidchristiansen.dk> dateTue 19 Nov 2013, 16:59 (13 years ago) parent171b8f9
1 file changed+3−3
test/test016/test016.idr+3−3
test/test016/test016.idr+3−3
@@ -2,12 +2,12 @@ module Main
22
33%default total
44
5−codata Stream a = Nil | (::) a (Stream a)
5+codata Stream' a = Nil | (::) a (Stream' a)
66
7−countFrom : Int -> Stream Int
7+countFrom : Int -> Stream' Int
88countFrom x = x :: countFrom (x + 1)
99
10−take : Nat -> Stream a -> List a
10+take : Nat -> Stream' a -> List a
1111take Z _ = []
1212take (S n) (x :: xs) = x :: take n xs
1313take n [] = []