fill2<A> static method

IVector<IVector<A>> fill2<A>(
  1. int n1,
  2. int n2,
  3. A elem
)

Creates a 2-dimensional IVector of shape n1 × n2, filled with elem.

Implementation

static IVector<IVector<A>> fill2<A>(int n1, int n2, A elem) => fill(n1, fill(n2, elem));