Question: Find the error in the following ML code: fun charListToStringList [ ] = [ ] | charListToStringList ( # ::xs ) =
Find the error in the following ML code:
fun charListToStringList
charListToStringList #::xs::charListToStringListxs
charListToStringList #i::#n::#t::xs "int"::charListToStringListxs
charListToStringList x::xs Char.toString x :: charListToStringListxs;
When compiled it throughs the following error:
stdIn: Error: nonconstructor applied to argument in pattern
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
