Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(array_list), | intent(in) | :: | this | |||
class(*), | intent(in) | :: | item |
Position of the first occurrence of item
in list
Returns the index of the first occurrence of the item in the list. If there are no occurrences, then returns -1.
pure function array_list_get_index(this, item)
!* Author: Chris MacMackin
! Date: March 2016
!
! Returns the index of the first occurrence of the item in the list.
! If there are no occurrences, then returns -1.
!
class(array_list), intent(in) :: this
class(*), intent(in) :: item
integer :: array_list_get_index
!! Position of the first occurrence of `item` in list
end function array_list_get_index