Skip to content

Instantly share code, notes, and snippets.

@Willmo36
Created August 22, 2016 17:24
Show Gist options
  • Save Willmo36/f6aa6dc78240b2e43a7a7eeff382e58f to your computer and use it in GitHub Desktop.
Save Willmo36/f6aa6dc78240b2e43a7a7eeff382e58f to your computer and use it in GitHub Desktop.
esnextbin sketch
<!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>
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);
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"immutable": "3.8.1",
"ramda": "0.22.1"
}
}
"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