ETHproductions / japt

Japt 1.4.5, the other JavaScript golfing language
http://ethproductions.github.io/japt
74 stars 10 forks source link

Change Return Value of 0.ì() #55

Open PeterShaggyNoble opened 5 years ago

PeterShaggyNoble commented 5 years ago

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.