Write a function in sml that takes in an integer


Problem: Write a function in SML that takes in an integer and a pair of lists. The first list is a list of integers and the second list is a list of booleans. The booleans determine which of the integers in the list are in the set. For example, ([2 ,4 ,5], [true, true, false]): 2 and 4 are elements in the set. This function must return take an integer and determine if it is an element of the set by returning true or false. For example, funcName(7, [2, 7, 9], [false, true, false]) will return true and funcName(2, [2, 7, 9], [false, true, false]) will return false.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a function in sml that takes in an integer
Reference No:- TGS03252152

Expected delivery within 24 Hours