【发布时间】:2021-02-17 15:45:01
【问题描述】:
我正在尝试找出相互递归。我有这个代码:
fun take(L)=
if L=nil then nil
else hd(L) :: skip(tl(L))
AND
fun skip(L)=
if L=nil then nil
else take(tl(L));
但它给了我这些错误:
stdIn:54.14-54.18 Error: unbound variable or constructor: skip
stdIn:55.1-55.4 Error: unbound variable or constructor: AND
我做错了什么?
【问题讨论】: