def printIntervalBounded[T](i: Interval[T]) = println(s"$i.isBounded == ${i.isBounded}")
printIntervalBounded(Interval.empty[Long])
printIntervalBounded(Interval("(1,2)"))
printIntervalBounded(Interval("[1,∞)"))
printIntervalBounded(Interval("(-∞,1]"))
printIntervalBounded(Interval.all[Long])
(Ø).isBounded == false
(1, 2).isBounded == false
[1, ∞).isBounded == true
(-∞, 1].isBounded == true
(-∞, ∞).isBounded == true
def isBounded: Boolean =
this match {
case Below(_, _) | Above(_, _) | All() => true
case _ => false
}
Hi!
Most discussion around Spire happens on its Gitter channel these days,
Cheers,
Miles
--
You received this message because you are subscribed to the Google Groups "Typelevel Users & Development List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to typelevel+...@googlegroups.com.
To post to this group, send email to type...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/typelevel/901deb1d-4f4c-428b-8e0b-8043f70dd29f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.