array_list_pop Function

private function array_list_pop(this) result(pop)

Arguments

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

Return Value class(container), allocatable

The value from the end of the list

Description

Removes the item at the end of the list and returns it.


Source Code

  function array_list_pop(this) result(pop)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Removes the item at the end of the list and returns it.
    !
    class(array_list), intent(inout) :: this
    class(container), allocatable :: pop
      !! The value from the end of the list
  end function array_list_pop