The Trunk: Collections-mt.906.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-mt.906.mcz

commits-2
Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.906.mcz

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

Name: Collections-mt.906
Author: mt
Time: 6 August 2020, 10:09:38.701052 am
UUID: 97d0d39c-6fe1-914b-bb0b-6a1b9a2b9715
Ancestors: Collections-eem.905

Adds shortcuts for remove/replace text attributes using a predicate.

=============== Diff against Collections-eem.905 ===============

Item was added:
+ ----- Method: Text>>removeAttributesThat: (in category 'converting') -----
+ removeAttributesThat: removalBlock
+ "Enumerate all attributes in the receiver. Remove those passing removalBlock."
+
+ self
+ removeAttributesThat: removalBlock
+ replaceAttributesThat: [:att | false]
+ by: nil.!

Item was added:
+ ----- Method: Text>>replaceAttributesThat:by: (in category 'converting') -----
+ replaceAttributesThat: replaceBlock by: convertBlock
+ "Enumerate all attributes in the receiver. Replace those passing replaceBlock after converting it through convertBlock."
+
+ self
+ removeAttributesThat: [:att | false]
+ replaceAttributesThat: replaceBlock
+ by: convertBlock.!