[Haskell-cafe] why these two are not equivalent?
Diego Souza
dsouza at bitforest.org
Sun Sep 13 13:15:12 EDT 2009
On Sun, Sep 13, 2009 at 11:34:16AM +0200, Max Rabkin wrote:
> That is part of the contract of toAscList (the "Asc" stands for
> "ascending order"), but because of the way Map is implemented, the
> result of toList is also sorted.
Cool. It is good to know that toAscList and toList would produce the
same output.
However, I think the question remains open. Is this piece of haskell
code any different (in terms of the output it produces) from the C++
version?
Thanks,
--
~dsouza
yahoo!im: paravinicius
gpg key fingerprint: 71B8 CE21 3A6E F894 5B1B 9ECE F88E 067F E891 651E
More information about the Haskell-Cafe
mailing list