Convert a number to a list of digits in Q
Using the internal variable .Q.n, we can convert a number to the list of its digits with the following function:
f: {.Q.n ? string x}
As an added convenience, heading zeros are removed.
For example:
f 0007890 / 7 8 9 0
Written by Dionysios Barmpoutis
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#