Re: Re[2]: [Haskell-cafe] Re: Keys and Maps [Was: Re: I just don't get it (data structures and OO)]

2007-06-08 Thread J. Garrett Morris
On 6/8/07, Bulat Ziganshin [EMAIL PROTECTED] wrote: I second that. I particularly like the elimination of ]'s. We certainly need some symbol to separate the map and the key; but we do really need to also mark here be the end of the key? and how (arr ! key ++ data) should be parsed? :)

[Haskell-cafe] Re: Keys and Maps [Was: Re: I just don't get it (data structures and OO)]

2007-06-07 Thread Grzegorz
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

[Haskell-cafe] Re: Keys and Maps [Was: Re: I just don't get it (data structures and OO)]

2007-06-07 Thread apfelmus
Grzegorz wrote: 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

Re: [Haskell-cafe] Re: Keys and Maps [Was: Re: I just don't get it (data structures and OO)]

2007-06-07 Thread Justin Bailey
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

Re: [Haskell-cafe] Re: Keys and Maps [Was: Re: I just don't get it (data structures and OO)]

2007-06-07 Thread Albert Y. C. Lai
Justin Bailey wrote: 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: universe ! Milky Way ! Sun I