Skip to content

add front2 #11

@cossio

Description

@cossio

Just like tail2, it seems useful to also have front2:

@inline front2(t::Tuple{Any, Any, Vararg{Any}}) = argfront2(t...)
@inline argfront2(a, b...) = (a, argfront2(b...)...)
@inline argfront2(a, b) = ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions