Idris2/tests/idris2/total/total011/Issue1460.idr
2023-09-07 14:57:22 +01:00

7 lines
137 B
Idris

%default total
nonproductive : Stream a -> (Stream a, ())
nonproductive (x :: xs) =
case nonproductive xs of
(xs, ()) => (xs, ())