What is the type F# would infer for this function? let rec myFun L1 L2 = match L1 with | | -> L2 | e:[] -> let first::rest = L2 %3D rest | e:rest -> let e2::rest2 = L2 myFun rest rest2 Your answer...


What is the type F# would infer for this function?<br>let rec myFun L1 L2 =<br>match L1 with<br>| | -> L2<br>| e:[] -> let first::rest = L2<br>%3D<br>rest<br>| e:rest -> let e2::rest2 = L2<br>myFun rest rest2<br>Your answer should be in the format<br>

Extracted text: What is the type F# would infer for this function? let rec myFun L1 L2 = match L1 with | | -> L2 | e:[] -> let first::rest = L2 %3D rest | e:rest -> let e2::rest2 = L2 myFun rest rest2 Your answer should be in the format
Suppose I wanted to build a list L containing 1, 2, 3, 5 in that order<br>Which of the following successfully build this list?<br>O a. let L = [1,2,3,5]<br>b.Jet L = 1::2::3::5::[]<br>O c. let L = [1]@[2]@[3]@[5]<br>d. let L = [1]@[2]@[3,5]<br>%3D<br>е.<br>let K = [2]@[3]@[5] let L = 1::K<br>

Extracted text: Suppose I wanted to build a list L containing 1, 2, 3, 5 in that order Which of the following successfully build this list? O a. let L = [1,2,3,5] b.Jet L = 1::2::3::5::[] O c. let L = [1]@[2]@[3]@[5] d. let L = [1]@[2]@[3,5] %3D е. let K = [2]@[3]@[5] let L = 1::K

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here