Comment #4 on issue 2705 by stephane.ducasse: Collection enh for Cog
http://code.google.com/p/pharo/issues/detail?id=2705

Thanks for your feedback.

may be should just integrate

+ copyUpThrough: anElement
+       "Answer all elements up to and including anObject. If there
+       is no such object, answer a copy of the receiver."
+
+       ^self first: (self indexOf: anElement ifAbsent: [^ self copy])


Reply via email to