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

skipTail(), seekTail(), splitTail() #120

Closed
koraa opened this issue Oct 9, 2020 · 1 comment
Closed

skipTail(), seekTail(), splitTail() #120

koraa opened this issue Oct 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@koraa
Copy link
Contributor

koraa commented Oct 9, 2020

Functions for accessing the end of a sequence…

const dropTail = (seq, n) => chain(slidingWindow(n+1), map(first));
const seekTail = (seq, n) => chain(slidingWindow(n+1), last);
example splitTail([a, b, c, d, e], 2) -> [[a, b, c], [d, e]])

Add Try variants too (those are variants that won't complain if the seq is too short)…

@koraa koraa added the enhancement New feature or request label Oct 9, 2020
@koraa
Copy link
Contributor Author

koraa commented Apr 30, 2021

Duplicate of #121

@koraa koraa marked this as a duplicate of #121 Apr 30, 2021
@koraa koraa closed this as completed Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant