<commit_before>
{{alias}}( ...f )
    Function composition.

    Returns a composite function. Starting from the right, the composite
    function evaluates each function and passes the result as the first argument
    of the next function. The result of the leftmost function is the result
    of the whole.

    The last argument for each provided function is a `next` callback which
    should be invoked upon function completion. The callback accepts two
    arguments:

    - `error`: error argument
    - `result`: function result

    If a composed function calls the `next` callback with a truthy `error`
    argument, the composite function suspends execution and immediately calls
    the `done` callback for subsequent `error` handling.

    Execution is *not* guaranteed to be asynchronous. To guarantee asynchrony,
    wrap the `done` callback in a function which either executes at the end of
    the current stack (e.g., `nextTick`) or during a subsequent turn of the
    event loop (e.g., `setIntermediate`, `setTimeout`).

    Only the rightmost function is explicitly permitted to accept multiple
    arguments. All other functions are evaluated as binary functions.

    The function will throw if provided fewer than two input arguments.

    Parameters
    ----------
    f: ...Function
        Functions to compose.

    Returns
    -------
    out: Function
        Composite function.

    Examples
    --------
    > function a( x, next ) {
    ...    setTimeout( onTimeout, 0 );
    ...    function onTimeout() {
    ...        next( null, 2*x );
    ...    }
    ... }
    > function b( x, next ) {
    ...    setTimeout( onTimeout, 0 );
    ...    function onTimeout() {
    ...        next( null, x+3 );
    ...    }
    ... }
    > function c( x, next ) {
    ...    setTimeout( onTimeout, 0 );
    ...    function onTimeout() {
    ...        next( null, x/5 );
    ...    }
    ... }
    > var f = {{alias}}( c, b, a );
    > function done( error, result ) {
    ...    if ( error ) {
    ...        throw error;
    ...    }
    ...    console.log( result );
    ... }
    > f( 6 )
    3

    See Also
    --------
<commit_msg>Supply done callback in example code<commit_after>
{{alias}}( ...f )
    Function composition.

    Returns a composite function. Starting from the right, the composite
    function evaluates each function and passes the result as the first argument
    of the next function. The result of the leftmost function is the result
    of the whole.

    The last argument for each provided function is a `next` callback which
    should be invoked upon function completion. The callback accepts two
    arguments:

    - `error`: error argument
    - `result`: function result

    If a composed function calls the `next` callback with a truthy `error`
    argument, the composite function suspends execution and immediately calls
    the `done` callback for subsequent `error` handling.

    Execution is *not* guaranteed to be asynchronous. To guarantee asynchrony,
    wrap the `done` callback in a function which either executes at the end of
    the current stack (e.g., `nextTick`) or during a subsequent turn of the
    event loop (e.g., `setIntermediate`, `setTimeout`).

    Only the rightmost function is explicitly permitted to accept multiple
    arguments. All other functions are evaluated as binary functions.

    The function will throw if provided fewer than two input arguments.

    Parameters
    ----------
    f: ...Function
        Functions to compose.

    Returns
    -------
    out: Function
        Composite function.

    Examples
    --------
    > function a( x, next ) {
    ...    setTimeout( onTimeout, 0 );
    ...    function onTimeout() {
    ...        next( null, 2*x );
    ...    }
    ... }
    > function b( x, next ) {
    ...    setTimeout( onTimeout, 0 );
    ...    function onTimeout() {
    ...        next( null, x+3 );
    ...    }
    ... }
    > function c( x, next ) {
    ...    setTimeout( onTimeout, 0 );
    ...    function onTimeout() {
    ...        next( null, x/5 );
    ...    }
    ... }
    > var f = {{alias}}( c, b, a );
    > function done( error, result ) {
    ...    if ( error ) {
    ...        throw error;
    ...    }
    ...    console.log( result );
    ... }
    > f( 6, done )
    3

    See Also
    --------

{'fraction_non_alphanumeric': 0.11611864796504943, 'fraction_numerical': 0.0036790066681995862, 'mean_word_length': 1.9096989966555185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '371303', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1130, 'n_words': 486}