Skip to content

GridFactory

[Source]

Validated constructor for Grid.

primitive val GridFactory

Constructors

create

[Source]

new val create()
: GridFactory val^

Returns


Public Functions

apply

[Source]

Return a Grid from the given cells. If cells.size() != width * height, returns an empty grid of the requested dimensions.

fun box apply(
  width: USize val,
  height: USize val,
  cells: Array[Cell val] val)
: Grid val

Parameters

Returns


eq

[Source]

fun box eq(
  that: GridFactory val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: GridFactory val)
: Bool val

Parameters

Returns