Lots of interesting ways to solve my issue. I like Robert's approach as it
is easy to communicate to the user, and is fairly intuitive. Just need a
simple instruction to the user to put spaces between the numbers, so J
treats it as a vector. Converting the numeric vector to character and
removing the spaces is straightforward.
char =. 3 : '('' ''~:":y)#":y'
char 0 0 2 3 0 4
002304
I attempted to make this a tacit verb, but no luck. I'm still a neophyte
when it comes to tacit.
c =. (' '~:":])#":]
|syntax error
| c=.( ' '~:":])#":]
Skip Cave
Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm