operator <= method

bool operator <=(
  1. Week other
)

Returns true if this is before or equal to other.

Implementation

bool operator <=(Week other) => index <= other.index;