Incorrect subcollection index

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Incorrect subcollection index

Boris Popov, DeepCove Labs (SNN)
Hmm,

'abc' indexOfSubCollection: '' startingAt: 1

returns 0, although according to set math empty set is a subset of every
set and every set is a subset of itself. Obviously there's no specific
index where the empty subcollection resides, but certainly returning 0
in that specific case implies that no match is found, which is
incorrect.

Cheers!

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.