I have this simple function:
val CLC_seq=
fn (n) =>
(Cons (n, find_CLC_seq(COL_seq(n))))
When:
find_CLC_sqe is : int seq -> int;
COL_seq is: fn: int -> int seq;
The complier wrote:
Error: operator and operand don't agree
operator domain: int * (Unit -> int seq)
operand: int * int
in expression:
(Cons (n, find_CLC_seq(COL_seq(n))))
What is the reason? How can I solve it? Thank you.