Question: Programming 3 0 . ( 8 pts ) In the space below, write a function called maxIncCount in OCam l F # , which :
Programming
pts In the space below, write a function called maxIncCount in OCam# which :
Accepts a predicate function and a single list of integers. You may assume the list has at least one element.
Resolves to a integer count of the longest consecutive sequence of increasing integers matching the predicate.
The function should utilize pattern matching and recursion and not use any "mutable" valuesvariables
For example, the result would equal after the function call below:
let result maxIncCount fun
Reason: The consecutive values ;; represent the longest run of integers greater than
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
