On 6/7/07, Grzegorz <[EMAIL PROTECTED]> wrote:

All this hard work for something that in a lesser language would be the
unimpressive:  universe["Milky Way"]["Sun"] ;-P

Well, if you want to get picky there is the '!' operator defined in Data.Map:

import Data.Map

universe :: Map String (Map String String)
universe = fromList [("Milky Way", fromList [("Sun", "It's home!")])]

earth :: String
earth = universe ! "Milky Way" ! "Sun"

Justin
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to