September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -0,0 +1,14 @@
|
|||
(() => {
|
||||
'use strict';
|
||||
|
||||
// stringSucc :: Maybe String -> Maybe String
|
||||
const stringSucc = s =>
|
||||
isNaN(s) ? undefined : (Number(s) + 1).toString();
|
||||
|
||||
// show :: a -> String
|
||||
const show = x => JSON.stringify(x, null, 2);
|
||||
|
||||
return show(
|
||||
['2', '4', '8', '16', 'anomaly'].map(stringSucc)
|
||||
);
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue