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 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
Get step-by-step solutions from verified subject matter experts
