The Trunk: Collections-nice.719.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-nice.719.mcz

commits-2
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.719.mcz

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

Name: Collections-nice.719
Author: nice
Time: 20 October 2016, 10:28:18.384751 pm
UUID: a873d200-0ee0-4297-aebd-510f92ea243c
Ancestors: Collections-nice.718

Let reversed preserve Interval class.
Handle the case of empty Interval specially (preserve the bounds).

=============== Diff against Collections-nice.718 ===============

Item was added:
+ ----- Method: Interval>>reversed (in category 'converting') -----
+ reversed
+ self isEmpty ifTrue: [^stop to: start by: step negated].
+ ^self last to: start by: step negated!