Fundamentals of Functional Programming Flashcards
First-Class Object
Any object that can be used as an argument or result of a functional call
High Order Function
A function that takes a function as its inputs or created a function as its outputs.
Function Application
The process of calculating the result of a function by passing it some data to produce a result
Partial Application (of a function)
The process of applying a function by creating an intermediate function by fixing some of the arguments to the function.
Function Composition
Combining two or more functions together to create more complex functions.
Map Function
A function that generates an output list from an input list by applying a function to each element in the input list.
Filter Function
A method of creating a subset based on a specified critera.
Reduce/fold function
A method of reducing a list to a single element by combining the elements using a function
Tail
Every element in a list apart from the head (think of it as a snake)
Head
The first element in a list