Question: 1 Fill in the Blank For each code snippet, fill in the blank(s) with an expression such that the whole code snippet evaluates exactly to



1 Fill in the Blank For each code snippet, fill in the blank(s) with an expression such that the whole code snippet evaluates exactly to the integer 42 (that is, it should not evaluate to 42.0, "42", [42], etc.) or, if this is not possible, explain why. The code you put in each blank should be a complete OCaml expression (i.e., you should be able to type it into the OCaml toplevel by itself without a syntax error). (a) let rec f n = if n y then x else y (c) with match | [] > 0 |x:: [] > 1 |x::y::[] => 2 | x::y::z::t -> y let f = in List.map f [42] (e) let rec fx n = if n 40) (h) let rec fx n = if n y then x else y (c) with match | [] > 0 |x:: [] > 1 |x::y::[] => 2 | x::y::z::t -> y let f = in List.map f [42] (e) let rec fx n = if n 40) (h) let rec fx n = if n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
