[Haskell-cafe] How to check object's identity?
Xie Hanjian
jan.h.xie at gmail.com
Sat Jan 3 10:28:30 EST 2009
Hi,
I tried this in ghci:
>Prelude> 1:2:[] == 1:2:[]
True
Does this mean (:) return the same object on same input, or
(==) is not for identity checking? If the later is true, how
can I check two object is the *same* object?
Thanks
Jan
--
jan=callcc{|jan|jan};jan.call(jan)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090103/dafa0f6d/attachment.bin
More information about the Haskell-Cafe
mailing list