ouch! I missed that point from the definition :P ....

Too bad that beginsWith: is not in the standard... I still feel that 'bbb' beginsWith: '' should return true... but it seems to be incompatible with indexOfSubCollection:startingAt: behavior...

Gabriel.


2010/3/4 Henrik Johansen <henrik.s.johansen@veloxit.no>


Den 04.03.2010 16:03, skrev Gabriel Cotelli:

Message:� indexOfSubCollection: targetSequence startingAt: start
Start searching at index start in the receiver. Answer 0 if no such
subsequence is found.
*snip*

Answer 0 if no such
subsequence is found in the receiver, or if targetSequence is empty.

I don't see how that is ambigous regarding whether an empty collection is defined as a subsequence or not.

Cheers,
Henry

_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project