continuing to debug falling rain world program
This commit is contained in:
parent
cfd65fc782
commit
12ab2a5738
|
@ -152,10 +152,12 @@
|
||||||
|
|
||||||
var checkNaturalInRange = makeCheckParameterizedArgumentType(
|
var checkNaturalInRange = makeCheckParameterizedArgumentType(
|
||||||
function(x, a, b) {
|
function(x, a, b) {
|
||||||
return plt.baselib.numbers.isNatural(x) &&
|
if (! plt.baselib.numbers.isNatural(x)) { return false; }
|
||||||
}
|
return (plt.baselib.numbers.lessThanOrEqual(a, x) &&
|
||||||
|
plt.baselib.numbers.lessThan(x, b));
|
||||||
|
},
|
||||||
function(a, b) {
|
function(a, b) {
|
||||||
return plt.baselib.format('natural between ~a and ~a', [a, b])
|
return plt.baselib.format('natural between ~a and ~a', [a, b]);
|
||||||
});
|
});
|
||||||
|
|
||||||
var checkInteger = makeCheckArgumentType(
|
var checkInteger = makeCheckArgumentType(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user