Skip to content

Commit

Permalink
Avoid deprecated iftes
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Feb 16, 2018
1 parent 7efb14f commit 8bee5d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions EXERCISES.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,9 @@ test('ins', L.set(valOf('fi'), 'Otsikko', data), [{key: 'en', val: 'Title'}
of two different forms.
* <span class="hint">Using [`L.lens`](/#L-lens), write a custom lens
to access the end of `{start, num}` pair.</span>
* <span class="hint">Use [`L.iftes`](/#L-lens) or [`L.choices`](/#L-choices)
to select between `'end'` and the custom lens.</span>
* <span class="hint">Use [`L.ifElse`](/#L-ifElse) or
[`L.choices`](/#L-choices) to select between `'end'` and the custom
lens.</span>
* Enhance the lens to allow additional fields beyond `start`, `end` / `num` in a
range object.
* <span class="hint">Use [`L.props`](/#L-props) to limit the fields that the
Expand Down Expand Up @@ -183,7 +184,7 @@ test('emp', L.remove([xs, L.when(x => 0 < x)], coords), [])

* Implement a `nonObject` traversal that targets all non-object or primitive
properties of arbitrarily nested objects.
* <span class="hint">Use [`L.iftes`](/#L-iftes) to select whether to treat
* <span class="hint">Use [`L.ifElse`](/#L-ifElse) to select whether to treat
target as an object or primitive.</span>
* <span class="hint">Use [`L.values`](/#L-values) to traverse through all
properties of an object.</span>
Expand Down
7 changes: 4 additions & 3 deletions docs/exercises.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ <h3 id="dimorphic-ranges">Dimorphic ranges</h3>
of two different forms.<ul>
<li><span class="hint">Using <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-lens"><code>L.lens</code></a>, write a custom lens
to access the end of <code>{start, num}</code> pair.</span></li>
<li><span class="hint">Use <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-lens"><code>L.iftes</code></a> or <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-choices"><code>L.choices</code></a>
to select between <code>&#39;end&#39;</code> and the custom lens.</span></li>
<li><span class="hint">Use <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-ifElse"><code>L.ifElse</code></a> or
<a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-choices"><code>L.choices</code></a> to select between <code>&#39;end&#39;</code> and the custom
lens.</span></li>
</ul>
</li>
<li>Enhance the lens to allow additional fields beyond <code>start</code>, <code>end</code> / <code>num</code> in a
Expand Down Expand Up @@ -229,7 +230,7 @@ <h3 id="nested-properties">Nested properties</h3>
<ul>
<li>Implement a <code>nonObject</code> traversal that targets all non-object or primitive
properties of arbitrarily nested objects.<ul>
<li><span class="hint">Use <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-iftes"><code>L.iftes</code></a> to select whether to treat
<li><span class="hint">Use <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-ifElse"><code>L.ifElse</code></a> to select whether to treat
target as an object or primitive.</span></li>
<li><span class="hint">Use <a target="_blank" href="https://github.com/calmm-js/partial.lenses/#L-values"><code>L.values</code></a> to traverse through all
properties of an object.</span></li>
Expand Down

0 comments on commit 8bee5d2

Please sign in to comment.