made with esnextbin
Created
August 22, 2016 17:24
-
-
Save Willmo36/f6aa6dc78240b2e43a7a7eeff382e58f to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<!-- put additional styles and scripts here --> | |
</head> | |
<body> | |
<div id="app" /> | |
<!-- put markup and other contents here --> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Immutable from "immutable"; | |
import R from "ramda"; | |
const a = Immutable.List([1,3,5]); | |
const result = R.reduce((t, i) => t+i, 0, a); | |
console.info(result); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "esnextbin-sketch", | |
"version": "0.0.0", | |
"dependencies": { | |
"immutable": "3.8.1", | |
"ramda": "0.22.1" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var _immutable = require("immutable"); | |
var _immutable2 = _interopRequireDefault(_immutable); | |
var _ramda = require("ramda"); | |
var _ramda2 = _interopRequireDefault(_ramda); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
var a = _immutable2.default.List([1, 3, 5]); | |
var result = _ramda2.default.reduce(function (t, i) { | |
return t + i; | |
}, 0, a); | |
console.info(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment