array_list_push Subroutine

private pure subroutine array_list_push(this, item)

Arguments

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

The value to place at the start of the list.

Description

Adds an item to the beginning of the list.


Source Code

  pure subroutine array_list_push(this, item)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Adds an item to the beginning of the list.
    !
    class(array_list), intent(inout) :: this
    class(*), intent(in) :: item
      !! The value to place at the start of the list.
  end subroutine array_list_push