205k views
1 vote
In what higher-order function do you apply a predicate to each value within a list, and if the predicate returns true, the value is added to an object

1 Answer

2 votes

Answer:

Returning function

Step-by-step explanation:

As functions are objects, we can also return a function from another function. In the below example, the create_adder function returns adder function.

User Alaeddin AL Zeybek
by
5.1k points