
30 Aug
2005
30 Aug
'05
8:53 p.m.
On Wed, 31 Aug 2005, Philippa Cowderoy wrote:
On Wed, 31 Aug 2005, Ben Lippmeier wrote:
I imagine this would be an absolute pain for library writers. Notice that we get Data.Map.map but no Data.Map.mapM - or perhaps there's some magical lifting combinator that I am not aware of?
sequence (Data.Map.map (\x -> someAction x) someMap)
Or not - I really should've at least typechecked that before sending. Wonder how fast toList and fromList are? -- flippa@flippac.org There is no magic bullet. There are, however, plenty of bullets that magically home in on feet when not used in exactly the right circumstances.