div method

Set<N> div(
  1. N divideBy
)

Divide all values by divideBy.

2, 4, 6.div(2) returns 1, 2, 3.

If N is type int, resulting elements will be truncated.

Implementation

Set<N> div(N divideBy) {
  return h
      .divideIterable(
        original: this,
        n: divideBy,
        intsOnly: false,
      )
      .toSet();
}