array_list_foreach Subroutine

private subroutine array_list_foreach(this, action)

Arguments

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

A procedure to act on each element of the list

Description

Performs the specified action on each item in the list, in place.


Source Code

  subroutine array_list_foreach(this, action)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Performs the specified action on each item in the list, in place.
    !
    class(array_list), intent(inout) :: this
    procedure(action_sub) :: action
      !! A procedure to act on each element of the list
  end subroutine array_list_foreach