Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add front2 #11

Open
cossio opened this issue Mar 6, 2020 · 0 comments
Open

add front2 #11

cossio opened this issue Mar 6, 2020 · 0 comments

Comments

@cossio
Copy link

cossio commented Mar 6, 2020

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) = ()
@cossio cossio changed the title front2 add front2 Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant