endsWith

Checks if range ends with a given element.

  1. bool endsWith(A range, B elem)
    bool
    endsWith
    (
    A
    B
    )
    (,)
    if ()
  2. bool endsWith(A range, B subrange)

Parameters

range A

The range of values to check if ends with elem.

elem B

The element to check if range ends with.

Return Value

Type: bool

True if range ends with elem.

Meta