Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
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 |
Places the value of the provided element in the specified location in the array. Crashes if this element is not already defined.
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