atol=:13 :'0".,'' '',.":y' atol 0 ". [: , ' ' ,. ":
On Mon, Sep 12, 2011 at 6:55 PM, David Vaughan <purpleblue...@googlemail.com > wrote: > Ah thanks, I need to read the dictionary pages more carefully for those > little things. > > A couple of times I've found myself wanting to convert a number into a list > of its digits - what is the best approach for this? > > This is way I've found: > > 0".,' ',.":123 > 1 2 3 > > Though it seems slightly clunky? > > Also, I try to define it as a verb and I'm not sure why I'm getting a > syntax error with it: > > atol=: 3 :'0".,' ',.":y' > |syntax error > | atol=: 3 :'0".,'',.":y' > > Finally, how might one write that as a tacit verb? > > Thanks. > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm