戻り値
例
例 | |
{value let t:Table = {Table halign="right"} let size:int = 10 {for i:int = 1 to size do {for j:int = 1 to size do let prod:int = i * j {t.add {cell-prototype row = i - 1, column = j - 1, color = {if prod mod 2 == 0 then "green" else "red"}, prod}}}} t} |
例 | |
{value let t:Table = {Table halign="right"} let size:int = 10 {for i:int = 1 to size do {for j:int = 1 to size do let prod:int = i * j {t.add {cell-prototype row = i - 1, column = j - 1, color = {if prod mod 2 == 0 then "green" else "red"}, i * j}}}} {t.add {cell-prototype row=1, column=2, colspan=2, rowspan=2, {Rule color="orange"}}} {t.add {cell-prototype row=2, column=6, rowspan=3, {Rule color="blue"}}} {t.add {cell-prototype row=4, column=3, colspan=3, {Rule color="brown"}}} {t.add {cell-prototype row=6, column=4, colspan=4, rowspan=3, {Rule color="pink"}}} t} |