function library
Classes
-
FunctionWrapper<S, A>
-
Wraps a function
func of type S Function(A) so it can be called as an instance method.
Functions
-
flip<A, B, C>(C Function(B) fn(A))
→ C Function(A) Function(B)
-
Flips the order of arguments for a curried function.
-
flow<A, B>(B ab(A))
→ B Function(A)
-
Returns a function that applies
ab to its argument.
-
flow2<A, B, C>(B ab(A), C bc(B))
→ C Function(A)
-
-
flow3<A, B, C, D>(B ab(A), C bc(B), D cd(C))
→ D Function(A)
-
-
flow4<A, B, C, D, E>(B ab(A), C bc(B), D cd(C), E de(D))
→ E Function(A)
-
-
flow5<A, B, C, D, E, F>(B ab(A), C bc(B), D cd(C), E de(D), F ef(E))
→ F Function(A)
-
-
flow6<A, B, C, D, E, F, G>(B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F))
→ G Function(A)
-
-
flow7<A, B, C, D, E, F, G, H>(B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F), H gh(G))
→ H Function(A)
-
-
flow8<A, B, C, D, E, F, G, H, I>(B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F), H gh(G), I ih(H))
→ I Function(A)
-
-
flow9<A, B, C, D, E, F, G, H, I, J>(B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F), H gh(G), I ih(H), J ji(I))
→ J Function(A)
-
-
getSemigroup<S, A>(BaseSemigroup<S> semigroup)
→ BaseSemigroup<FunctionWrapper<S, A>>
-
Returns a semigroup for the
FunctionWrapper type, using a provided semigroup for the S type.
-
identity<A>(A a)
→ A
-
Identity function.
-
pipe<A>(A a)
→ A
-
Returns the input
a without making any transformations.
-
pipe10<A, B, C, D, E, F, G, H, I, J>(A a, B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F), H gh(G), I hi(H), J ij(I))
→ J
-
Transforms the input
a by applying the function ab, then bc, then cd, then de, then ef, then fg, then gh, then hi and then ij.
-
pipe2<A, B>(A a, B ab(A))
→ B
-
Transforms the input
a by applying the function ab.
-
pipe3<A, B, C>(A a, B ab(A), C bc(B))
→ C
-
Transforms the input
a by applying the function ab and then bc.
-
pipe4<A, B, C, D>(A a, B ab(A), C bc(B), D cd(C))
→ D
-
Transforms the input
a by applying the function ab, then bc and then cd.
-
pipe5<A, B, C, D, E>(A a, B ab(A), C bc(B), D cd(C), E de(D))
→ E
-
Transforms the input
a by applying the function ab, then bc, then cd and then de.
-
pipe6<A, B, C, D, E, F>(A a, B ab(A), C bc(B), D cd(C), E de(D), F ef(E))
→ F
-
Transforms the input
a by applying the function ab, then bc, then cd, then de and then ef.
-
pipe7<A, B, C, D, E, F, G>(A a, B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F))
→ G
-
Transforms the input
a by applying the function ab, then bc, then cd, then de, then ef and then fg.
-
pipe8<A, B, C, D, E, F, G, H>(A a, B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F), H gh(G))
→ H
-
Transforms the input
a by applying the function ab, then bc, then cd, then de, then ef, then fg and then gh.
-
pipe9<A, B, C, D, E, F, G, H, I>(A a, B ab(A), C bc(B), D cd(C), E de(D), F ef(E), G fg(F), H gh(G), I hi(H))
→ I
-
Transforms the input
a by applying the function ab, then bc, then cd, then de, then ef, then fg, then gh and then hi.
Typedefs
-
LazyArg<A>
= A Function()
-
Function that returns an instance of type
A.