diff --git a/misc.go b/misc.go index 19a2fc4..9e0f73a 100644 --- a/misc.go +++ b/misc.go @@ -133,6 +133,13 @@ func genRange[T character](start, end T) []T { return toRet } +// Generate numbers in a range - start to end (both inclusive) +func genRangeInclusive[T character](start, end T) []T { + toRet := genRange(start, end) + toRet = append(toRet, end) + return toRet +} + // Returns a rune-slice containing all possible cases of the given rune. // At the moment, this includes: // 1. Upper case