Question: 2. ( 40 pts.) Write ML functions as described below. For each, (i) pasteltype your solution in text in this doc, and (ii) take screenshots
2. ( 40 pts.) Write ML functions as described below. For each, (i) pasteltype your solution in text in this doc, and (ii) take screenshots of your rumning code with 2 different inputs and outputs and paste it in this Word doc. Make sure your source code, a comment with your Full Name in the source, and the output are all in the same image. Example screenshot for problem (a): a. A function increasingNumbers x of type int list Bool that returns true only if list x contains a list of integer numbers that are ordered in increasing fashion from left to right. For example, [1,5,30,40] results in True, but [2,1,5,10] results in False. Empty lists return True. b. A function any'rue : bool 1ist bool that given a list of booleans returns true if there is at least one of them that is true, otherwise returns false. (If the list is empty it should return fal se because there is no true.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
