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

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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!