API
Modules
Types and constants
Functions and macros
OneTwoMany.first_and_rest
OneTwoMany.first_second_rest
OneTwoMany.firstarg
OneTwoMany.getsecond
OneTwoMany.secondarg
Documentation
OneTwoMany.OneTwoMany
— ModuleOneTwoMany
Provides provides utility functions for accessing the first, second and the rest of the elements of a collection.
OneTwoMany.first_and_rest
— Functionfirst_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.
OneTwoMany.first_second_rest
— Functionfirst_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.
OneTwoMany.firstarg
— Functionfirstarg(args...)
Returns the first elements of args...
.
OneTwoMany.getsecond
— Functiongetsecond(x)
Return the second element of x
.
x
may be an AbstractArray
, Tuple
, NamedTuple
, Pair
, AbstractString
, or an iterable in general. ```
OneTwoMany.secondarg
— Functionsecondarg(args...)
Returns the second elements of args...
.