Commit Graph

1 Commits

Author SHA1 Message Date
Julien Fischer
c6da21fda2 Add the predicate int.all_true_in_range/3.
Add the predicate all_true_in_range/3 where

   all_true_in_range(P, Low, High) <=>
       list.all_true(P, Low .. High)

except that it avoids construction of the list 'Low..High'.

library/int.m:
    Add the above predicate.

    s/Lo to Hi/Low to High/ in the description of the predicate
    nondet_int_in_range/3.  We use the latter form when describing
    the fold predicates above.

NEWS:
    Announce the new predicate.

    Adjust an existing entry.

tests/hard_coded/Mmakefile:
tests/hard_coded/int_range_ops.{m,exp}:
    Test the new predicate and also test the predicate nondet_in_range/3
    since none of the existing tests covered that.
2015-01-24 01:58:03 +11:00