Skip to content

Commit 4dc8390

Browse files
committed
Forgot to commit these. Also, fix when RunKit not around.
Reviewed by @tolmasky.
1 parent 5f4d0b6 commit 4dc8390

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

docs/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14602,7 +14602,7 @@ <h2>
1460214602
</h2>
1460314603

1460414604

14605-
<div><code>(c → c) → (a,b → a) → a → [b] → a</code></div>
14605+
<div><code>(c → c) → ((a, b) → a) → a → [b] → a</code></div>
1460614606

1460714607

1460814608
<div class="params" data-expanded="false">
@@ -14681,8 +14681,11 @@ <h2>
1468114681

1468214682
<pre><button class="try-repl" data-ramda-version="0.24.1">Try in REPL</button><code class="hljs javascript"><span class="hljs-keyword">var</span> numbers = [<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>, <span class="hljs-number">4</span>];
1468314683
<span class="hljs-keyword">var</span> transducer = R.compose(R.map(R.add(<span class="hljs-number">1</span>)), R.take(<span class="hljs-number">2</span>));
14684+
R.transduce(transducer, R.flip(R.append), [], numbers); <span class="hljs-comment">//=&gt; [2, 3]</span>
1468414685

14685-
R.transduce(transducer, R.flip(R.append), [], numbers); <span class="hljs-comment">//=&gt; [2, 3]</span></code></pre>
14686+
<span class="hljs-keyword">var</span> isOdd = <span class="hljs-function">(<span class="hljs-params">x</span>) =&gt;</span> x % <span class="hljs-number">2</span> === <span class="hljs-number">1</span>;
14687+
<span class="hljs-keyword">var</span> firstOddTransducer = R.compose(R.filter(isOdd), R.take(<span class="hljs-number">1</span>));
14688+
R.transduce(firstOddTransducer, R.flip(R.append), [], R.range(<span class="hljs-number">0</span>, <span class="hljs-number">100</span>)); <span class="hljs-comment">//=&gt; [1]</span></code></pre>
1468614689
</section>
1468714690
<div id="transpose" class="section-id"></div>
1468814691
<section class="card">
@@ -16437,5 +16440,6 @@ <h2>
1643716440
</main>
1643816441
<script src="dist/ramda.js"></script>
1643916442
<script src="main.js"></script>
16443+
<script src = "https://embed.runkit.com"></script>
1644016444
</body>
1644116445
</html>

docs/main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@
109109
var versionParam = version ? '?v=' + version : '';
110110
var code = event.target.nextElementSibling.textContent;
111111
var encoded = fixedEncodeURIComponent(code);
112-
window.open(location.origin + '/repl/' +
112+
113+
return window.open(location.origin + '/repl/' +
113114
versionParam + '#;' + encoded);
114115
}
115116

@@ -130,7 +131,7 @@
130131
minHeight: "52px",
131132
onLoad: function(notebook) {
132133
var iframe = parent.lastElementChild;
133-
iframe.style.cssText = 'height:' + iframe.style.height
134+
iframe.style.cssText = 'height:' + iframe.style.height + ';width:' + iframe.style.width;
134135
iframe.classList.add('repl')
135136
notebook.evaluate()
136137
}

style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)