Proposal: add unzips for Data.Sequence
Ivan Lazar Miljenovic
ivan.miljenovic at gmail.com
Fri Jan 12 03:32:19 UTC 2018
On 12 January 2018 at 13:28, David Feuer <david.feuer at gmail.com> wrote:
> Paolo G. Giarrusso (Blaisorblade) would like to add an unzip function to
> Data.Sequence. I agree. I propose adding
>
> unzip :: Seq (a,b) -> (Seq a, Seq b)
>
> unzipWith :: (x -> (a, b)) -> Seq x -> (Seq a, Seq b)
>
> Does anyone object?
I see no problem with this. Though I think it's worth pointing out
that Data.List doesn't have unzipWith (though unzipWith f = unzip .
map f).
--
Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com
http://IvanMiljenovic.wordpress.com
More information about the Libraries
mailing list