array_list_popleft Function

private function array_list_popleft(this) result(pop)

Arguments

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

Return Value class(container), allocatable

The item just removed from the start of the list

Description

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


Source Code

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