我想编写一个只从列表中提取奇数的函数.就像是:
fun odd(nil) = nil | odd(a::nil) = a | odd(a::(b::c)) = a::odd(c);
但它会导致此错误:
运算符和操作数不同意[循环]
sml
sml ×1