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

🔎 Change seq_along to seq.int #57

Open
kalaschnik opened this issue Jan 20, 2022 · 0 comments
Open

🔎 Change seq_along to seq.int #57

kalaschnik opened this issue Jan 20, 2022 · 0 comments
Labels
refactor Bad code, performance, et al.

Comments

@kalaschnik
Copy link
Member

seq.int is the fastest of all seq functions and treats literals/scalars "correctly"
e.g.

  • seq.int(3) -> [1] 1 2 3
    -seq_along(3) -> [1] 1
@kalaschnik kalaschnik added the refactor Bad code, performance, et al. label Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Bad code, performance, et al.
Projects
None yet
Development

No branches or pull requests

1 participant