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
Hi.
I'm often using something like
pushIn : List a -> a -> List a pushIn list elem = elem :: list
to use it into pipelines
doSomethingWithElems : a -> List a -> List a doSomethingWithElems myElem allMyElems = myElem |> doSomethingWithTheElem |> pushIn allMyElems
What do you think about it? It's the exact reverse of (::), but since flip is gone, I think it is worthwhile.
(::)
flip
The text was updated successfully, but these errors were encountered:
I would personally prefer |> \elem -> elem :: allMyElems here. Just my two cents.
|> \elem -> elem :: allMyElems
Sorry, something went wrong.
I dont think its really that useful. In these cases I do..
doSomethingWithElems : a -> List a -> List a doSomethingWithElems myElem = (::) (dosomethingWithTheElem myElem)
No branches or pull requests
Hi.
I'm often using something like
to use it into pipelines
What do you think about it?
It's the exact reverse of
(::)
, but sinceflip
is gone, I think it is worthwhile.The text was updated successfully, but these errors were encountered: