【发布时间】:2011-05-27 22:25:23
【问题描述】:
我有这个简单的功能:
val CLC_seq=
fn (n) =>
(Cons (n, find_CLC_seq(COL_seq(n))))
时间:
find_CLC_sqe is : int seq -> int;
COL_seq is: fn: int -> int seq;
编译器写道:
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))))
是什么原因?我该如何解决?谢谢。
【问题讨论】:
标签: sml