The to(end: Char, step: Char) method is utilized to return a range from the stated character to the ‘end’, which is given in the arguments list and some “step” is also specified in the arguments list.
Method Definition: def to(end: Char, step: Char): Inclusive[Char]
Return Type: It returns the range.
NumericRange(A, C, E, G)
NumericRange(0, 3, 6, 9)