div method

Set<int> div(
  1. int divideBy
)

Divide all values by divideBy.

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

Resulting elements are truncated.

Implementation

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