get_range Function

public pure function get_range(str_range) result(res)

Parse a string into a range of integers.

"1" -> [1] "1-4" -> [1, 2, 3, 4] "4-1" -> [integer::]

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: str_range

Return Value integer, allocatable, (:)


Contents