Question: program in SML 3. Write a recursive function named parseList: char list -> int. It receives a list of characters that are digits and returns
3. Write a recursive function named parseList: char list -> int. It receives a list of characters that are digits and returns the integer value of those digits. You may assume the characters in the list are only valid digits. For example, parseList([#"2", "3", #"8"]) returns 238. You may allow the base case parseList([]) returns 0. 3. Write a recursive function named parseList: char list -> int. It receives a list of characters that are digits and returns the integer value of those digits. You may assume the characters in the list are only valid digits. For example, parseList([#"2", "3", #"8"]) returns 238. You may allow the base case parseList([]) returns 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
