Each of the following ML functions contains a function call that passes a function parameter f. In each case, will the function f use its nesting link when it is called? Why? a) fun addone theList =...


Each of the following ML functions contains a function call that passes a function parameter f. In each case, will the function f use its nesting link when it is called? Why?


a) fun addone theList =


    let fun f x = x + 1;


    in map f theList


end;


b) fun addall n theList =


       let fun f x = x + n;


       in map f theList


       end;


c) fun do123 f =


   map f [1, 2, 3]



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here