array_list_peek Function

private pure function array_list_peek(this) result(peek)

Arguments

Type IntentOptional AttributesName
class(array_list), intent(in) :: this

Return Value class(container), allocatable

The element at the end of the list

Description

Returns the item at the end of the list, without removing it.


Source Code

  pure function array_list_peek(this) result(peek)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !  
    ! Returns the item at the end of the list, without removing it.
    !
    class(array_list), intent(in) :: this
    class(container), allocatable :: peek
      !! The element at the end of the list
  end function array_list_peek