linspace method
Implementation
Iterable<E> linspace(count) {
if (E == int) {
return IntRange.linspace(lower as int, upper as int, count)
as Iterable<E>;
} else if (E == double) {
return DoubleRange.linspace(lower as double, upper as double, count)
as Iterable<E>;
}
throw UnsupportedError('range is not supported for $E');
}