The Trunk: Collections-ul.317.mcz

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

The Trunk: Collections-ul.317.mcz

commits-2
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.317.mcz

==================== Summary ====================

Name: Collections-ul.317
Author: ul
Time: 24 February 2010, 9:56:28.457 pm
UUID: 8be93a58-5ad8-6a49-b0d9-cd29daf8bdc2
Ancestors: Collections-ar.316

- removed String >> #lastPositionOf: because it does the same as SequenceableCollection >> #lastIndexOf:

=============== Diff against Collections-ar.316 ===============

Item was removed:
- ----- Method: String>>lastPositionOf: (in category 'testing') -----
- lastPositionOf: aChar
- "Answer the character position of the final space or other separator character in the receiver, and 0 if none"
- self size to: 1 by: -1 do:
- [:i | ((self at: i)= aChar) ifTrue: [^ i]].
- ^ 0
-
- "
- 'fred the bear' lastSpacePosition
- 'ziggie' lastSpacePosition
- 'elvis ' lastSpacePosition
- 'wimpy  ' lastSpacePosition
- '' lastSpacePosition
- "!