Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions