get_permutations Function

public pure function get_permutations(n) result(res)

@brief Create all possible permutations of [1, …, n]

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n

Return Value integer, (n,factrl(n))


Contents