Open ghivert opened 6 years ago
I would personally prefer |> \elem -> elem :: allMyElems
here. Just my two cents.
I dont think its really that useful. In these cases I do..
doSomethingWithElems : a -> List a -> List a
doSomethingWithElems myElem =
(::) (dosomethingWithTheElem myElem)
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.