[Haskell-cafe] Using Collections: ElemsView and KeysView

Benjamin Franksen benjamin.franksen at bessy.de
Sun Aug 19 10:59:47 EDT 2007


I am using collections-0.3 and need to perform some operations on keys resp.
values of a map. In the concrete implementations there are functions
like 'elems' and 'keys' but there is no such thing in Data.Collections.
Instead there are the types 'ElemsView' and 'KeysView' and
functions 'withElems' and 'withKeys', but I have not the slightest idea how
they are supposed to be used, there is very sparse documentation and no
examples. I'd be glad for any hints.


More information about the Haskell-Cafe mailing list