The Trunk: Collections-kfr.812.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-kfr.812.mcz

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

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

Name: Collections-kfr.812
Author: kfr
Time: 4 November 2018, 4:41:29.534614 pm
UUID: 93f849c9-8b62-e04c-b8e0-ab2a7c2d728c
Ancestors: Collections-eem.811

Print the matrix so one can see the rows and columns

=============== Diff against Collections-eem.811 ===============

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