Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(array_list), | intent(inout) | :: | this | |||
procedure(action_sub) | :: | action | A procedure to act on each element of the list |
Performs the specified action on each item in the list, in place.
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