Skip to content

Commit

Permalink
fixes #880 (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-henz authored Jul 10, 2024
1 parent 6f7425c commit 83df2fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions xml/chapter4/section3/subsection1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,18 @@ function a_pythogorean_triple_between(low, high) {
}
</JAVASCRIPT>
</SNIPPET>
<SOLUTION>
<SNIPPET>
<JAVASCRIPT>
// solution by GitHub user jonathantorres

function an_integer_between(low, high) {
require(low &lt;= high);
return amb(low, an_integer_between(low+1, high));
}
</JAVASCRIPT>
</SNIPPET>
</SOLUTION>
</EXERCISE>

<EXERCISE>
Expand Down

0 comments on commit 83df2fc

Please sign in to comment.