21 May
2011
21 May
'11
12:32 p.m.
Duh... Thanks, Arlen. Michael --- On Sat, 5/21/11, Arlen Cuss <celtic@sairyx.org> wrote: From: Arlen Cuss <celtic@sairyx.org> Subject: Re: [Haskell-cafe] Can't access map value with key. To: "michael rice" <nowgate@yahoo.com> Cc: haskell-cafe@haskell.org Date: Saturday, May 21, 2011, 8:17 AM On Sat, 2011-05-21 at 04:56 -0700, michael rice wrote:
(fromList [(("\n","\n"),["I"]),(("\n","I"),["am"]),(("I","am"),["lost."])],("am","lost."),[])
Or splitting that out: (fromList [(("\n","\n"),["I"]),(("\n","I"),["am"]),(("I","am"),["lost."])], ("am","lost."), []) Note that it's a triple, not one map. You're printing the triple mp, the first item of which is a map. A