clampAll method

Iterable<T> clampAll(
  1. T lo,
  2. T hi
)

Clamps every element to [lo, hi].

Implementation

Iterable<T> clampAll(T lo, T hi) => map((e) => e.clamp(lo, hi) as T);