File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
geocss/src/main/scala/org/geoscript/support/interval Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ object Interval {
43
43
: Interval [T ] =
44
44
(a, b) match {
45
45
case (`empty`, _) | (_, `empty`) => Empty
46
- case (a : NonEmpty [ T ], b : NonEmpty [ T ] ) =>
46
+ case (NonEmpty (aMin, aMax), NonEmpty (bMin, bMax) ) =>
47
47
val min =
48
- (for (x <- a.min ; y <- b.min ) yield join(evidence.gt _)(x, y)) orElse
49
- a.min orElse
50
- b.min
48
+ (for (x <- aMin ; y <- bMin ) yield join(evidence.gt _)(x, y)) orElse
49
+ aMin orElse
50
+ bMin
51
51
val max =
52
- (for (x <- a.max ; y <- b.max ) yield join(evidence.lt _)(x, y)) orElse
53
- a.max orElse
54
- b.max
52
+ (for (x <- aMax ; y <- bMax ) yield join(evidence.lt _)(x, y)) orElse
53
+ aMax orElse
54
+ bMax
55
55
val emptyOpt =
56
56
for (mn <- min; mx <- max) yield
57
57
(mn, mx) match {
You can’t perform that action at this time.
0 commit comments