BUG: using `¢` to count a list of integers/digits inside a string doesn't work
kcruijss opened this issue · comments
Let's say we have a string input, and we want to count how many ones and zeros it contains. Using TS¢
works fine, because TS
will result in the string-list ["1","0"]
, but using an integer pair [1,0]
instead won't work for the ¢
builtin (i.e. 0L¢
).
When using [1,0]
instead of ["1","0"]
it will result in a pair containing the string itself two times.
In addition, the same issue seems to occur with the count builtin for multi-digit integers in a string (i.e. ₆¢
), resulting in the string itself.
Try it online to reproduce.
Came across it in this codegolf answer of mine, as well as in this answer of mine.