I am learning standard ML and I keep getting this error and I am not sure why?
Here is the code and the error:
> fun in_list(element, list) =
if hd(list) = element then true
else val tempList = List.drop(list, 1);
in_list(element, tempList);
# # Error-Expression expected but val was found
Static Errors
I know there has to be something wrong with the syntax that I am trying.