When I run this code in the REPL, it throws Error: syntax error: inserting DOT. I would like to know what that error message means.
I have since fixed the code and still want to know the meaning of that message for future reference.
part_dir is function that returns a custom datatype direction with possible patterns Left and Right.
fun same (fs)=
case fs of
(f1::f2::fs') => case (part_dir(f1),part_dir(f2)) of
(dir1=dir2) => same (f2::fs')
| _ => false
| _ => true