API

Modules

Types and constants

    Functions and macros

    Documentation

    OneTwoMany.OneTwoManyModule
    OneTwoMany

    Provides provides utility functions for accessing the first, second and the rest of the elements of a collection.

    source
    OneTwoMany.first_and_restFunction
    first_and_rest(x)

    Returns a tuple that contains the first and the rest of the elements of x.

    x may be an AbstractArray, Tuple, NamedTuple, Pair, AbstractString, or an iterable in general.

    source
    OneTwoMany.first_second_restFunction
    first_second_rest(x)

    Returns a tuple that contains the first, second, and the rest of the elements of x.

    x may be an AbstractArray, Tuple, NamedTuple, Pair, AbstractString, or an iterable in general.

    source
    OneTwoMany.getsecondFunction
    getsecond(x)

    Return the second element of x.

    x may be an AbstractArray, Tuple, NamedTuple, Pair, AbstractString, or an iterable in general. ```

    source