modular icon indicating copy to clipboard operation
modular copied to clipboard

[Feature Request] Consolidate `bin()` and `hex()` implementations

Open bgreni opened this issue 1 year ago • 0 comments

Review Mojo's 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

bgreni avatar May 18 '24 05:05 bgreni