This function returns true if the first argument’s predicate does not hold for any pair in the second argument’s list.
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →function
notInList : (int -> float -> bool) -> (int * float) list -> bool
This function returns true if the first argument’s predicate does not hold for any pair in the second argument’s list.
Make sure your implementation employs explicit tail recursion.
e.g.
notInList (fun _ _ -> true) [(1,2.0);(3,4.0)] should return false.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds