]> gitweb.factorcode.org Git - factor.git/commit
math.intervals: Consistent handling of special intervals
authortimor <timor.dd@googlemail.com>
Mon, 9 Sep 2019 08:31:33 +0000 (10:31 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 9 Sep 2019 21:09:57 +0000 (14:09 -0700)
commit14d75bbbcbc169aa2f0ad818a109b2aa1518638b
tree97d84ed98af5b5788cf5324c3b836cfbb4bd5d29
parenta8c73064d88a53816f21defc45c88b31466156fb
math.intervals: Consistent handling of special intervals

Make both `empty-interval` and `full-interval` singletons, use generic functions
and methods where they are special-cased.

All words which work with interval points should also now work with the special
intervals.
basis/compiler/tree/propagation/info/info.factor
basis/compiler/tree/propagation/recursive/recursive.factor
basis/math/intervals/intervals-tests.factor
basis/math/intervals/intervals.factor