# [Jelly], 25 [bytes]

    ṫi¥³ḣi
    L2ṗŒ!瀵ạ2\S€ỊḄµÞṪ

A full program taking the bit-strings using `1` and `2`\* as lists. The arguments are `from` and `to`. The program prints a list of lists of the same.

\* `0` and `1` may be used instead at the cost of a byte (add `’` between `L2ṗ` and `Œ!ç€...` to decrement).

**[Try it online!][TIO-j87xaooa]**


[Jelly]: https://github.com/DennisMitchell/jelly
[bytes]: https://github.com/DennisMitchell/jelly
[TIO-j87xaooa]: https://tio.run/##y0rNyan8///hztWZh5Ye2vxwx@JMLh@jhzunH52keHj5o6Y1h7Y@3LXQKCYYyHy4u@vhjpZDWw/Pe7hz1f///6MNdYAw9n@0kQ4QxgIA "Jelly – Try It Online"