Hey guys! Would it be valit for STDLib to contain ...
# language-proposals
l
Hey guys! Would it be valit for STDLib to contain an extension function such as
Int.length
, that counts how many numbers are in an Integer?
t
I feel like that’s really specific.
d
You mean something like
java.lang.Integer.bitCount
?
b
I think he means in decimal. That'll be
yourInt.toString().length
t
This is ambiguous, there are infinite number of numeral systems, you must include radix parameter just as with
toString()
v
Do you have a use case exemple?