The core functions of FP
Function/signature/aka |
Description (book location) |
---|---|
Return T → P<T> point, lift, pure | Takes a value of type T and “lifts” it into a “structure” with the given T as its “inner value” (sections 4.3 and 8.3). |
Map F<T> → (T → R) → F<R> fMap, project, lift; Select in LINQ | Takes an F<T> (a functor over T; that is, a structure whose inner value(s) have type T) and a function T → R, and returns an F<R> whose inner value(s) are the result of applying the given function to the inner value(s) of the given functor (section 4.1). |
Apply A<T → R> → A<T> → A<R> | Takes an applicative functor A<T → R> wrapping a function, and an A<T> wrapping an argument, and returns an A<R> wrapping the result of applying the wrapped ... |
Get Functional Programming in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.