Question: Question 2 8 pts What is wrong in this incorrect definition of a pure function ? A function f with input type A and output

 Question 2 8 pts What is wrong in this incorrect definition

Question 2 8 pts What is wrong in this incorrect definition of a pure function ? A function f with input type A and output type B is a computation that relates every value a of type A to at least one value b of type B such that bis determined also by the value of a. Any changing state of an internal or external process is irrelevant to computing the result fla). for a function to be pure it absolutely should not involve internal or external state changes, even if they are not observable a pure function requires the returned value of b to be determined only by the value of the input argument a one value of a must determine uniquely just one value of type B or else the function type is not A -> B

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!