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

unconsLast #173

Open
Chadtech opened this issue Jan 11, 2023 · 0 comments
Open

unconsLast #173

Chadtech opened this issue Jan 11, 2023 · 0 comments

Comments

@Chadtech
Copy link
Collaborator

When researching the uses of List.Extra.init, I noticed multiple instances in which it was used with List.Extra.last, like..

      case (List.Extra.init list, List.Extra.last list) of 
          (Just init, Just last) ->
              -- ..

This is like List.Extra.uncons except it separates out the last element instead of the first.

Maybe List.Extra should have such a function? I am not sure if unconsLast is the best name.

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