Explain why the SML interpreter accepts the declarations datatype 'a FBtree = node of 'a * 'a
Fantastic news! We've Found the answer you've been seeking!
Question:
Explain why the SML interpreter accepts the declarations datatype 'a FBtree = node of 'a * 'a FBtree list; fun dfs P (t: 'a FBtree) = let exception Ok of 'a; fun auxdfs( node(n,F) ) = if P n then raise Ok n else foldl (fn(t,_) => auxdfs t) NONE F; in auxdfs t handle Ok n => SOME n end; while it does not accept the declaration exception Ok of 'a;
Related Book For
Posted Date: