Multiplication tables: Difference between revisions
m
→JS ES6: (minor tidying)
Thundergnat (talk | contribs) m (→{{header|REBOL}}: Remove vanity tags) |
m (→JS ES6: (minor tidying)) |
||
Line 2,684:
====ES6====
<lang JavaScript>(() => {
// main :: () -> IO String▼
'text-align:center;width:33em;height:33em;table-layout:fixed;'▼
// multTable :: Int -> Int -> [[String]]
Line 2,700 ⟶ 2,708:
)
];
▲ };
▲ // main :: () -> IO String
▲ const main = () => {
▲ return wikiTable(
▲ multTable(1, 12), true,
▲ 'text-align:center;width:33em;height:33em;table-layout:fixed;'
▲ );
};
Line 2,757:
}, () => x);
// FORMATTING
// wikiTable :: [[a]] -> Bool -> String -> String
|