Question: Using Standard ML language to solve the problem using RECURSIVE definitions . 6. Write a function longest string that takes a string list and returns

Using Standard ML language to solve the problem using RECURSIVE definitions.

Using Standard ML language to solve the problem using RECURSIVE definitions. 6.

6. Write a function longest string that takes a string list and returns the longest string in the list. If the list is empty, return " (i.e., empty string). In the case of a tie, return the string closest to the beginning of the list. longest_string (["abc", "hello", "car", "apple"] >"hello" longest string (I) 39 CC .(*) For this problem, your implementation is required to use the build-in size function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!