Duh... Thanks, Arlen. Michael --- On Sat, 5/21/11, Arlen Cuss <[email protected]> wrote:
From: Arlen Cuss <[email protected]> Subject: Re: [Haskell-cafe] Can't access map value with key. To: "michael rice" <[email protected]> Cc: [email protected] 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
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
