Gleam - v1.0.2
    Preparing search index...

    Function cloneGrid

    • Clone a 2D grid; the outer array and each row become independent copies. Row cells are kept as-is (suitable for primitive cells; for nested structures use deepClone).

      Type Parameters

      • T

      Parameters

      • grid: readonly (readonly T[])[]

      Returns T[][]