YAPC::EU 2018 Glasgow Update!

This commit is contained in:
Ingy döt Net 2018-08-17 15:15:24 +01:00
parent 22f33d4004
commit 4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions

View file

@ -1,5 +1,13 @@
(() => {
// main :: () -> IO String
const main = () =>
wikiTable(
multTable(1, 12),
true,
'text-align:center;width:33em;height:33em;table-layout:fixed;'
);
// multTable :: Int -> Int -> [[String]]
const multTable = (m, n) => {
const xs = enumFromToInt(m, n);
@ -17,14 +25,6 @@
];
};
// main :: () -> IO String
const main = () => {
return wikiTable(
multTable(1, 12), true,
'text-align:center;width:33em;height:33em;table-layout:fixed;'
);
};
// GENERIC FUNCTIONS -----------------------------------------------------
// Tuple (,) :: a -> b -> (a, b)
@ -72,7 +72,7 @@
length: n
}, () => x);
// FORMATTING -------------------------------------------------------------
// FORMATTING ------------------------------------------------------------
// wikiTable :: [[a]] -> Bool -> String -> String
const wikiTable = (rows, blnHeader, style) =>