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 a function to take out an element from a list and return that element and the list #285

Open
Fuco1 opened this issue Feb 1, 2019 · 0 comments
Labels
enhancement Suggestion to improve or extend existing behavior

Comments

@Fuco1
Copy link
Collaborator

Fuco1 commented Feb 1, 2019

Alternatively have a function to move an nth element to the front.

(-to-front 4 '(0 1 2 3 4 5 6 7 8)) => '(4 0 1 2 3 5 6 7 8)

The user can easily recover the top and the rest by using car and cdr

@Fuco1 Fuco1 added the enhancement Suggestion to improve or extend existing behavior label Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Suggestion to improve or extend existing behavior
Projects
None yet
Development

No branches or pull requests

1 participant