extension IntExtension on int { Iterable to(int other, {bool inclusive = true}) => other > this ? [for (int i = this; i < other; i++) i, if (inclusive) other] : [for (int i = this; i > other; i--) i, if (inclusive) other]; }