array_list_set_single Subroutine

private subroutine array_list_set_single(this, element, item)

Arguments

Type IntentOptional AttributesName
class(array_list), intent(inout) :: this
integer, intent(in) :: element

The index (starting from 1) of the element whose value is to be set.

class(*), intent(in) :: item

The value to store in the specified element

Description

Places the value of the provided element in the specified location in the array. Crashes if this element is not already defined.


Source Code

  subroutine array_list_set_single(this, element, item)
    !* Author: Chris MacMackin
    !  Date: March 2016
    !
    ! Places the value of the provided element in the specified location
    ! in the array. Crashes if this element is not already defined.
    !
    class(array_list), intent(inout) :: this
    integer, intent(in) :: element
      !! The index (starting from 1) of the element whose value is to be set.
    class(*), intent(in) :: item
      !! The value to store in the specified element
  end subroutine array_list_set_single