<!DOCTYPE html>
<html>
<head>
<script data-require="ramda@*" data-semver="0.22.1" src="https://unpkg.com/ramda@0.22.1/dist/ramda.min.js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="output"></div>
<script src="script.js"></script>
</body>
</html>
// make console.log write to the page for better in-browser experience
(function () {
var body = document.querySelector('body');
body.style['fontFamily'] = 'monospace';
body.style['fontSize'] = '2em';
console.log = function (x) { body.innerText += JSON.stringify(x) + '\n'; };
}());
//const R = require('ramda')
const {unfold, curry} = R
const throughNByOne = curry((limit, n) => n > limit ? false : [n, n+1])
const throughNBaseTwo = curry((limit, n) => n > limit ? false : [n, n*2])
// const result = unfold(throughNByOne(15), 3)
const result = unfold(throughNBaseTwo(256), 2)
console.log(result)
/* Styles go here */