of<T> method

List<T> of<T>(
  1. List<T> items
)

The items of items that the shard takes, in their order.

Implementation

List<T> of<T>(List<T> items) => [
      for (final (position, item) in items.indexed)
        if (position % count == index - 1) item,
    ];