Question: 7. Write a function called equiv on, which takes three inputs: two functions f and g, and a list 1st. It returns true if

7. Write a function called equiv on, which takes three inputs: two functions f and g, and a list 1st. It returns true if and only if the functions f and g have identical behavior on every element of 1st. #let fii* i;; val fint -> int = #let gi 3* i;; val gint > int = #equiv on f g [3];; bool true # equiv on f g [1;2;3];; bool false (10)
Step by Step Solution
There are 3 Steps involved in it
Answer required code is as follow let equivon f g lst let rec checkeq lst match lst with true x xs f ... View full answer
Get step-by-step solutions from verified subject matter experts
