operator [] method

Layout operator [](
  1. int index
)

Returns an updated layout with the first axis resolved to index.

Implementation

Layout operator [](int index) => elementAt(index);