Skip to content

Instantly share code, notes, and snippets.

@tusharmath
Last active July 23, 2016 17:10
Show Gist options
  • Save tusharmath/4ce4e405f066b6fc2fa080a61cd2ce1e to your computer and use it in GitHub Desktop.
Save tusharmath/4ce4e405f066b6fc2fa080a61cd2ce1e 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>
<!-- put markup and other contents here -->
</body>
</html>
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
console.clear()
const R = require('ramda')
let i = 100000
const temp = R.curry((a, b) => [a, b, i++])
console.log(temp(1, 2))
console.log(temp(1, 2))
console.log(temp(1, 2))
{
"name": "esnextbin-sketch",
"dependencies": {
"ramda": "0.7.2"
},
"version": "0.0.0"
}
'use strict';
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
console.clear();
var R = require('ramda');
var i = 100000;
var temp = R.curry(function (a, b) {
return [a, b, i++];
});
console.log(temp(1, 2));
console.log(temp(1, 2));
console.log(temp(1, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment