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.
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*snip*
subsequence is found.
I don't see how that is ambigous regarding whether an empty collection is defined as a subsequence or not.
Answer 0 if no such
subsequence is found in the receiver, or if targetSequence is empty.
Cheers,
Henry
_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project