array_list_has Function

private elemental function array_list_has(this, item)

Arguments

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

A value whose presence in the list is being checked for

Return Value logical

.true. if item is present in list, .false. otherwise

Description

Indicates whether there are any copies of the specified item present in the list.


Source Code

  elemental function array_list_has(this, item)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Indicates whether there are any copies of the specified item
    ! present in the list.
    !
    class(array_list), intent(in) :: this
    class(*), intent(in) :: item
      !! A value whose presence in the list is being checked for
    logical :: array_list_has
      !! `.true.` if `item` is present in list, `.false.` otherwise
  end function array_list_has