Skip to main content

Interval.contains

containsthat

Group: Logical

Documentation

Checks if the interval contains that.

Arguments

  • that: The item to check if it is contained in the interval.

Examples

Checking if the interval 0.1 to 1 contains 0.33.

      import Standard.Base.Data.Interval

example_contains = (Interval.new 0.1 1 include_end=True) . contains 0.33