Multiplication tables: Difference between revisions

Line 348:
script mf
on col(x)
set {mf, rng} totell my closure's {mf, rng}
{x & my concatMap(my mClosure(row of its mf, {x:x}), its rng)}
{xend & concatMap(mClosure(row of mf, {x:x}), rng)}tell
end col
on row(y)
set x to x oftell my closure
if y < its x then
{""}
else
{((its x) * y) as text}
end if
end tell
end row
end script
Line 387 ⟶ 388:
intercalate(linefeed, map(mClosure(mf's showLine, {mf:mf}), lstTable))
end showTable
 
 
 
 
9,659

edits