japt icon indicating copy to clipboard operation
japt copied to clipboard

Change Return Value of 0.ì()

Open PeterShaggyNoble opened this issue 5 years ago • 0 comments

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.

PeterShaggyNoble avatar Mar 20 '19 09:03 PeterShaggyNoble