slices method

Bloom<List<List<E>>> slices(
  1. int size
)

Splits this collection into chunks of size elements reactively.

  • size: The maximum number of elements per chunk (must be at least 1).

Requires:

  • size must be greater than or equal to 1.

Throws:

Implementation

Bloom<List<List<E>>> slices(int size) =>
    computed((via) => List<List<E>>.unmodifiable(
          via(bloom).slices(size).map((s) => List<E>.unmodifiable(s)),
        ));