47.4k views
10 votes
Question 2: Describe and Discuss the concepts of Higher order functions and currying in a functional programming language such as Haskell (or Standard ML) and describe why these concepts are important.

1 Answer

5 votes

Answer:

A higher-order function is a type of function in programming that can either accept a function as its parameter or return a function or both. Curring is a process used by functions to accept and access multiple arguments.

Step-by-step explanation:

Functional programming languages like Hasket, Javascript, Python, etc, use the concept of higher-order functions and Curring to accept multiple arguments and functions as parameters and can also return a function.

User Nigrimmist
by
4.7k points