The OpenD Programming Language

Grid.opIndex

Slice operation gives a view into the underlying 1d array.

  1. inout(T)[] opIndex()
    struct Grid(T)
    pure @safe nothrow @nogc inout
    inout(T)[]
    opIndex
    ()
  2. inout(T) opIndex(int x, int y)
  3. inout(T) opIndex(Point pt)

Meta