Array.print()

Revision as of 15:13, 4 March 2017 by Joseph (talk | contribs) (→‎Array.print(Trimmed, TabLevel))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Array.print(Trimmed, TabLevel)

Print the array. Trimmed trims the printing, and tablevel indents the tabs for each element.

MAGICSQUARE(3).print()

[

[2,7,6 ],


[9,5,1 ],


[4,3,8 ]

]


MAGICSQUARE(3).print(true)

[

[2,7,6 ],


[9,5,1 ],


[4,3,8 ]

]

On screen, this would be tabbed appropriately.

MAGICSQUARE(3).print(true,true)

[

[2,7,6 ],


[9,5,1 ],


[4,3,8 ]

]