<div>> But it would be like cheating :-)</div>
<div> </div>
<div>In this case, the IO method *is* cheating.</div>
<div> </div>
<div>/jve<br></div>
<div class="gmail_quote">On Mon, Apr 13, 2009 at 12:27 PM, John Smith <span dir="ltr"><<a href="mailto:smithsnorth@gmail.com">smithsnorth@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">If you mean using a non-destructive map where the IO-problem is<br>absent, that is a doable thing. But it would be like cheating :-)<br>
<br>What I try do do is something like:<br>
<div class="im"><br>test = do<br> h <- HashTable.new (==) (\key -> key)<br> h1 <- HashTable.new (==) (\key -> key)<br> HashTable.insert h 3 h1<br> HashTable.insert h1 1 1000<br></div> res <- case HashTable.lookup h 3 of<br>
Nothing -> Nothing<br> Just outer -> HashTable.lookup outer 1000<br> return res<br>
<div>
<div></div>
<div class="h5">_______________________________________________<br>Haskell-Cafe mailing list<br><a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>/jve<br>