We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When researching the uses of List.Extra.init, I noticed multiple instances in which it was used with List.Extra.last, like..
List.Extra.init
List.Extra.last
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.
List.Extra.uncons
Maybe List.Extra should have such a function? I am not sure if unconsLast is the best name.
List.Extra
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When researching the uses of
List.Extra.init
, I noticed multiple instances in which it was used withList.Extra.last
, like..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 ifunconsLast
is the best name.The text was updated successfully, but these errors were encountered: