Currently, the following only generates a clause for cycle (S n) m:
cycle : Nat -> Nat -> Stream' Nat
&hd cycle n m = n
&tl cycle (S n) m = cycle n m
Resulting in:
cycle : Nat -> Nat -> Stream' Nat
cycle (S n) m = MkStream' (S n) cycle n m
Perhaps two clauses should be generated, such that 'cycle' is desugared to:
cycle : Nat -> Nat -> Stream' Nat
cycle Z m = MkStream' Z ?cycletl
cycle (S n) m = MkStream' (S n) cycle n m
This may or may not be an issue.
Currently, the following only generates a clause for cycle (S n) m:
Resulting in:
Perhaps two clauses should be generated, such that 'cycle' is desugared to:
This may or may not be an issue.