Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(array_list), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | element | The position of the element to be deleted from the list |
Removes the element at the specified position in the list, moving all succeeding items back by one position. Crashes if the element has not been set.
subroutine array_list_delete_single(this, element)
!* Author: Chris MacMackin
! Date: March 2016
!
! Removes the element at the specified position in the list, moving
! all succeeding items back by one position. Crashes if the element
! has not been set.
!
class(array_list), intent(inout) :: this
integer, intent(in) :: element
!! The position of the element to be deleted from the list
end subroutine array_list_delete_single