
18 Sep
2006
18 Sep
'06
10:58 a.m.
Carajillu
I get "line 18:parse error (possibly incorrect indentation)"
..which is a bit misleading, as the problem is on the preceeding line of code.
if x == e then return l2
And if x /= e? What is check_elem then?¹
-- Tries to match two lists. If they match, the result consists of the sublist -- bound to the wildcard in the pattern list. (line 18)
-k ¹ If you really don't want to provide that option, you could perhaps do: check_elem x | x == e = return l2