QuestionQ33

VerifiedFunctions, Classes and Objects

Which lambda definition of the function some_code is equivalent to the following function definition?

Question Image

Explanation

A lambda expression equivalent to this function takes invalue as its argument and returns invalue * 2. The intermediate variable outvalue is unnecessary because it is returned immediately.

Community Discussion

No comments yet. Be the first to start the discussion!