between method

Expr between(
  1. Object a,
  2. Object b
)

Create a predicate that checks if this expression is greater or equal to a and less than b.

Implementation

Expr between(Object a, Object b) => and(ge(this, $(a)), lt(this, $(b)));