[squeak-dev] The Trunk: Collections-kfr.812.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Nov 27 09:47:20 UTC 2019


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]]!



More information about the Squeak-dev mailing list