- diMapOnce<T1, R>(pred, fn1): (() => R) & {
raw: ((x1: T1) => R);
} Parameters
- pred: ((x1: T1) => R)
- fn1: ((...args: any[]) => T1)
Returns (() => R) & {
raw: ((x1: T1) => R);
}
- diMapOnce<T1, T2, R>(pred, fn1, fn2): (() => R) & {
raw: ((x1: T1, x2: T2) => R);
} Parameters
- pred: ((x1: T1, x2: T2) => R)
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
Returns (() => R) & {
raw: ((x1: T1, x2: T2) => R);
}
- diMapOnce<T1, T2, T3, R>(pred, fn1, fn2, fn3): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3) => R)
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3) => R);
}
- diMapOnce<T1, T2, T3, T4, R>(pred, fn1, fn2, fn3, fn4): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4) => R)
- (x1, x2, x3, x4): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4) => R);
}
- diMapOnce<T1, T2, T3, T4, T5, R>(pred, fn1, fn2, fn3, fn4, fn5): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5) => R)
- (x1, x2, x3, x4, x5): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
- fn5: ((...args: any[]) => T5)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5) => R);
}
- diMapOnce<T1, T2, T3, T4, T5, T6, R>(pred, fn1, fn2, fn3, fn4, fn5, fn6): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6) => R)
- (x1, x2, x3, x4, x5, x6): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
- fn5: ((...args: any[]) => T5)
- fn6: ((...args: any[]) => T6)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6) => R);
}
- diMapOnce<T1, T2, T3, T4, T5, T6, T7, R>(pred, fn1, fn2, fn3, fn4, fn5, fn6, fn7): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7) => R)
- (x1, x2, x3, x4, x5, x6, x7): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
- fn5: ((...args: any[]) => T5)
- fn6: ((...args: any[]) => T6)
- fn7: ((...args: any[]) => T7)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7) => R);
}
- diMapOnce<T1, T2, T3, T4, T5, T6, T7, T8, R>(pred, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8) => R)
- (x1, x2, x3, x4, x5, x6, x7, x8): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
- fn5: ((...args: any[]) => T5)
- fn6: ((...args: any[]) => T6)
- fn7: ((...args: any[]) => T7)
- fn8: ((...args: any[]) => T8)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8) => R);
}
- diMapOnce<T1, T2, T3, T4, T5, T6, T7, T8, T9, R>(pred, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8, fn9): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9) => R)
- (x1, x2, x3, x4, x5, x6, x7, x8, x9): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
- fn5: ((...args: any[]) => T5)
- fn6: ((...args: any[]) => T6)
- fn7: ((...args: any[]) => T7)
- fn8: ((...args: any[]) => T8)
- fn9: ((...args: any[]) => T9)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9) => R);
}
- diMapOnce<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, R>(pred, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8, fn9, fn10): (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9, x10: T10) => R);
} Parameters
- pred: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9, x10: T10) => R)
- (x1, x2, x3, x4, x5, x6, x7, x8, x9, x10): R
Returns R
- fn1: ((...args: any[]) => T1)
- fn2: ((...args: any[]) => T2)
- fn3: ((...args: any[]) => T3)
- fn4: ((...args: any[]) => T4)
- fn5: ((...args: any[]) => T5)
- fn6: ((...args: any[]) => T6)
- fn7: ((...args: any[]) => T7)
- fn8: ((...args: any[]) => T8)
- fn9: ((...args: any[]) => T9)
- fn10: ((...args: any[]) => T10)
Returns (() => R) & {
raw: ((x1: T1, x2: T2, x3: T3, x4: T4, x5: T5, x6: T6, x7: T7, x8: T8, x9: T9, x10: T10) => R);
}
Combine multiple states to one with further caching within diInit callback
Example