[Haskell-cafe] Can't access map value with key.

Arlen Cuss celtic at sairyx.org
Sat May 21 14:17:13 CEST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110521/8e695406/attachment.pgp>


More information about the Haskell-Cafe mailing list