私は次の機能を持っています:
getcountof(x,l::ls) =
if x=l then (1 + getcountof(x,ls))
else getcountof(x,ls)
|getcountof(x,[]) = 0;
誰かが私に何が悪いのか教えてもらえますか? エラーが発生します:
stdIn:1.2-1.17 Error: syntax error: deleting ELSE ID
stdIn:1.22-20.12 Error: syntax error: deleting RPAREN BAR ID