subroutinepush_idpureprivate
pure subroutine push_id(list, value)
Append value to list.
Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
| list | integer | inout | allocatabledimension(:) | the list |
| value | integer | in | the value |
Called by
- add_body
- def_directive
- parse_arguments
- parse_compare
- parse_comprehension
- parse_fstring
- parse_items
- parse_list
- read_targets
Source
Show the code
pure subroutine push_id(list, value)
integer, allocatable, intent(inout) :: list(:) !! the list
integer, intent(in) :: value !! the value
if (allocated(list)) then
list = [list, value]
else
list = [value]
end if
end subroutine push_id