Array.front

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

Return Value

Type: bool

The first element of the array.

Precondition: empty == false

Complexity: O(1)

Throws

Exception if the array is empty.

Meta