[Haskell-cafe] Re: Keys and Maps [Was: Re: I just don't get it
(data structures and OO)]
Grzegorz
grzegorz.chrupala at computing.dcu.ie
Thu Jun 7 11:29:29 EDT 2007
apfelmus <apfelmus <at> quantentunnel.de> writes:
[ .. lengthy discussion and implementation .. ]
> As an example, we have
>
> Just "Earth" == lookup (at "Milky Way" </> at "Sun") universe
>
> assuming that
>
> universe :: Data.Map String (Data.Map String String)
All this hard work for something that in a lesser language would be the
unimpressive: universe["Milky Way"]["Sun"] ;-P
--
G.
More information about the Haskell-Cafe
mailing list