dlib.math.hof

Functions that return other functions

Members

Functions

Y
auto Y(R delegate(P) delegate(R delegate(P)) lambda)

Y combinator Description: We're all familiar with the idea of a function as something that takes some input value and returns some output value. Say, the function for squaring numbers:

compose
T delegate(S) compose(T function(U) f, U function(S) g)

Functional composition. Description: Returns a function that applies function f to the return value of function g

Meta

Authors

Timur Gafarov