This function generates all unique pairs of integers up to a given number.
Examples
# Generate unique pairs up to 3 (one-indexed)
getUniquePairsUpTo(3)
#> [[1]]
#> [1] 1 2
#>
#> [[2]]
#> [1] 1 3
#>
#> [[3]]
#> [1] 2 3
#>
# Generate unique pairs up to 3 (zero-indexed)
getUniquePairsUpTo(3, oneIndexed = FALSE)
#> [[1]]
#> [1] 0 1
#>
#> [[2]]
#> [1] 0 2
#>
#> [[3]]
#> [1] 1 2
#>