The OpenD Programming Language

Array.front

  1. bool front [@property getter]
  2. bool front [@property setter]
    struct Array(T)
    @property
    void
    front
    (
    bool value
    )
    if (
    is(immutable T == immutable bool)
    )

Return Value

Type: void

The first element of the array.

Precondition: empty == false

Complexity: O(1)

Throws

Exception if the array is empty.

Meta