Question: Exercise 2 Define a function member of type 'a * a list -> bool so that membere, L) is true if and only if e

Exercise 2 Define a function member of type 'a * "a list -> bool so that membere, L) is true if and only if e is an element of the list L. 2 Some programmers claim that their ML programs are so clearly written as to be "self-documenting," requiring no comments. Indeed, some programmers have made this claim for their code in just about every programming language ever invented. But no program is ever as self-documenting ng as it seems to its author 116 Chapter 7A Second Look at ML Exercise 3 Define a function less of type int * int list -> int list so that less le, L) is a list of all the integers in that are less than e. Exercise 4 Define a function repeats of type 'a list -> bool so that repeats (L) is true if and only if the list L has two equal elements next to each other
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
