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

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

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

Name: Collections-mt.864
Author: mt
Time: 27 November 2019, 10:46:36.719363 am
UUID: 5e0200f3-d834-4849-93ad-393e5b2b1af2
Ancestors: Collections-mt.863, Collections-kfr.812

Merges Collections-kfr.812 but renames #printMatrix to the existing #stringForReadout. We might want to use that one for ObjectExplorer ... See Object >> #asExplorerString.

=============== Diff against Collections-mt.863 ===============

Item was added:
+ ----- Method: Matrix>>stringForReadout (in category 'printing') -----
+ stringForReadout
+ "Answer a String whose characters are a description of the receiver layed out in rows and columns"
+
+ ^ String streamContents: [:aStream |
+ 1
+ to: self rowCount
+ do: [:iRow |
+ 1
+ to: self columnCount
+ do: [:iCols |
+ aStream
+ print: (self at: iRow at: iCols).
+ aStream tab: 2].
+ aStream cr]]!