lib: adds Discrete::times as a shortcut to Range

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>