Question: I want the solution in SML. Problem 8 (10 points) Write an SML function, called update: (a 'b) list (a 'b)-(a 'b) list, that takes

 I want the solution in SML. Problem 8 (10 points) Write

I want the solution in SML.

Problem 8 (10 points) Write an SML function, called update: (a 'b) list ("a 'b)-("a 'b) list, that takes a finite list representation of a function as a list of input-output pairs and returns an updated finite list representation. For example, let (x,f(x)) denote an arbitrary input-output pair, and let FLP- [(xi, yi), (r22) (n, Jn)] denote an arbitrary finite list representation. If there erists a value for i such that 1 i n ??,-x, then update(FLR,(x,f(x))) will cause the element (zi,Vi) ?n FLR to be replaced with (x,f(x)). On the other hand, if there does not enst a value for i such that 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!