SplitScript reference / T..=T / isEmpty
T..=T.isEmpty
Method
T..=T.isEmpty() -> bool where T: Integer
Reports whether this range contains no values.
Only reversed endpoints make an inclusive range empty; equal endpoints contain exactly one value.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Detect a reversed inclusive range
let pending = 5u32..=4
let finished = pending.isEmpty()