Class RangeFun


  • public final class RangeFun
    extends Object
    Defines binding functions to enable range expressions such as:

    5kg to 10kg

    Mostly intended for use with for loops:

    
     for(int i: 1 to 10) {. . .}
     for(Length len: 10ft to 100ft step 6 unit inch) {. . .}
     for(var value: here to there) {. . .}
     
    and if statements:
    
       if (2 inside 1 to 5) {...}
     
    To use this class simply import the `to`, `step`, and other constants via:
    
     import static manifold.collections.api.range.RangeFun.*;