japt
japt copied to clipboard
Change Return Value of 0.ì()
Currently N.ì()
returns an empty array when N=0
but it might be more useful if it instead returned [0]
.
I know I brought this up before but I promptly forgot my use case for it! Another one I've come up with, though, is on a recent challenge where we needed to convert digits to words (e.g., 0
-> zero
) and I was trying to use A.g(N.ì())
to do so.