
7 Jun
2007
7 Jun
'07
10:07 p.m.
On 6/7/07, Grzegorz
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