# Task: Align columns
# SEE: <http://rosettacode.org/wiki/Align_columns>
#
-# Use `Text::justify` for the standard library.
+# Uses `Text::justify` from the standard library.
module align_columns
fun aligner(text: String, left: Float)
do
# Each row is a sequence of fields
var rows = new Array[Array[String]]
- var max = 0
for line in text.split('\n') do
rows.add line.split("$")
end