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

A few useful sequence functions #25

Closed
ghislainfourny opened this issue Jan 23, 2018 · 0 comments
Closed

A few useful sequence functions #25

ghislainfourny opened this issue Jan 23, 2018 · 0 comments

Comments

@ghislainfourny
Copy link
Member

ghislainfourny commented Jan 23, 2018

The following functions would be very useful because they are very commonly used:

empty((2, 3)) -> false
exists((2, 3)) -> true
tail((2, 3, 4)) -> (3, 4)
head((2, 3)) -> 2

as well as

insert-before#3
remove#2
reverse#1
subsequence#2
subsequence#3,

The first three can be optimized, because only the first value (if here) needs to be accessed, and the rest ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants