• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/functional
  • pipe

Function pipe

  • pipe<TInitial>(init: TInitial): TInitial
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial

    Parameters

    • init: TInitial

      The initial value

    Returns TInitial

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:27
  • pipe<TInitial, R1>(init: TInitial, init_r1: (init: TInitial) => R1): R1
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1

    Returns R1

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:28
  • pipe<TInitial, R1, R2>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
    ): R2
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2

    Returns R2

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:29
  • pipe<TInitial, R1, R2, R3>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
    ): R3
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3

    Returns R3

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:30
  • pipe<TInitial, R1, R2, R3, R4>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
    ): R4
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4

    Returns R4

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:36
  • pipe<TInitial, R1, R2, R3, R4, R5>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
        r4_r5: (r4: R4) => R5,
    ): R5
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4
    • R5

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4
    • r4_r5: (r4: R4) => R5

    Returns R5

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:43
  • pipe<TInitial, R1, R2, R3, R4, R5, R6>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
        r4_r5: (r4: R4) => R5,
        r5_r6: (r5: R5) => R6,
    ): R6
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4
    • R5
    • R6

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4
    • r4_r5: (r4: R4) => R5
    • r5_r6: (r5: R5) => R6

    Returns R6

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:51
  • pipe<TInitial, R1, R2, R3, R4, R5, R6, R7>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
        r4_r5: (r4: R4) => R5,
        r5_r6: (r5: R5) => R6,
        r6_r7: (r6: R6) => R7,
    ): R7
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4
    • R5
    • R6
    • R7

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4
    • r4_r5: (r4: R4) => R5
    • r5_r6: (r5: R5) => R6
    • r6_r7: (r6: R6) => R7

    Returns R7

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:60
  • pipe<TInitial, R1, R2, R3, R4, R5, R6, R7, R8>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
        r4_r5: (r4: R4) => R5,
        r5_r6: (r5: R5) => R6,
        r6_r7: (r6: R6) => R7,
        r7_r8: (r7: R7) => R8,
    ): R8
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4
    • R5
    • R6
    • R7
    • R8

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4
    • r4_r5: (r4: R4) => R5
    • r5_r6: (r5: R5) => R6
    • r6_r7: (r6: R6) => R7
    • r7_r8: (r7: R7) => R8

    Returns R8

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:70
  • pipe<TInitial, R1, R2, R3, R4, R5, R6, R7, R8, R9>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
        r4_r5: (r4: R4) => R5,
        r5_r6: (r5: R5) => R6,
        r6_r7: (r6: R6) => R7,
        r7_r8: (r7: R7) => R8,
        r8_r9: (r8: R8) => R9,
    ): R9
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4
    • R5
    • R6
    • R7
    • R8
    • R9

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4
    • r4_r5: (r4: R4) => R5
    • r5_r6: (r5: R5) => R6
    • r6_r7: (r6: R6) => R7
    • r7_r8: (r7: R7) => R8
    • r8_r9: (r8: R8) => R9

    Returns R9

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:81
  • pipe<TInitial, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10>(
        init: TInitial,
        init_r1: (init: TInitial) => R1,
        r1_r2: (r1: R1) => R2,
        r2_r3: (r2: R2) => R3,
        r3_r4: (r3: R3) => R4,
        r4_r5: (r4: R4) => R5,
        r5_r6: (r5: R5) => R6,
        r6_r7: (r6: R6) => R7,
        r7_r8: (r7: R7) => R8,
        r8_r9: (r8: R8) => R9,
        r9_r10: (r9: R9) => R10,
    ): R10
  • General pipe function. Provide an initial value and a list of functions to pipe it through.

    Following common implementations of pipe functions that use TypeScript, this function supports a maximum arity of 10 for type safety.

    Type Parameters

    • TInitial
    • R1
    • R2
    • R3
    • R4
    • R5
    • R6
    • R7
    • R8
    • R9
    • R10

    Parameters

    • init: TInitial

      The initial value

    • init_r1: (init: TInitial) => R1
    • r1_r2: (r1: R1) => R2
    • r2_r3: (r2: R2) => R3
    • r3_r4: (r3: R3) => R4
    • r4_r5: (r4: R4) => R5
    • r5_r6: (r5: R5) => R6
    • r6_r7: (r6: R6) => R7
    • r7_r8: (r7: R7) => R8
    • r8_r9: (r8: R8) => R9
    • r9_r10: (r9: R9) => R10

    Returns R10

    The final value with all functions applied

    See

    • https://github.com/ramda/ramda/blob/master/source/pipe.js
    • https://github.com/darky/rocket-pipes/blob/master/index.ts

    Note you can use nested pipes to extend this limitation, like so:

    const myValue = pipe(
    pipe(
    1,
    (x) => x + 1,
    (x) => x * 2,
    (x) => x - 1,
    ),
    (y) => y / 3,
    (y) => y + 1,
    );
    • Defined in pipe.ts:93

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc