Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Standard ML i. give the value that ans is bound to after evaluation; ii. indicate the data type of the function f after evaluation; iii.
Standard ML
i. give the value that ans is bound to after evaluation;
ii. indicate the data type of the function f after evaluation;
iii. please show some explanation how you get the answers.
(b) fun f p = let val x = 3 val y = 4 val (z,w) = p in (z (w y)) + x end val x = 1 val y = 2 val ans = f((fn z => x + z), (fn x => x + x + 0)). (b) fun f p = let val x = 3 val y = 4 val (z,w) = p in (z (w y)) + x end val x = 1 val y = 2 val ans = f((fn z => x + z), (fn x => x + x + 0))Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started