3 ms·
And of course a naive implementation of the reverse is also trivial: def numerize(euphonism) = euphonism.split(?-).map{$digits.find_index(it)}.map{it.to_s}.
by psychoslave 2y ago
And of course a naive implementation of the reverse is also trivial:
def numerize(euphonism) = euphonism.split(?-).map{$digits.find_index(it)}.map{it.to_s}.join.to_i