modular
modular copied to clipboard
[Feature Request] Consolidate `bin()` and `hex()` implementations
Review Mojo's priorities
- [X] I have read the roadmap and priorities and I believe this request falls within the priorities.
What is your request?
Immediately upon completing #2603 I realized hex.mojo already contains a general implementation for such things. These should be consolidated into a single implementation that accepts any size of SIMD or Indexer type. Having done this it would be trivial to add oct as well.
What is your motivation for this change?
Reduce code duplication.
Any other details?
No response