[Jprogramming] A Complaint with Format

Skip Cave skip at caveconsulting.com
Sat Sep 24 14:33:47 UTC 2016


 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


More information about the Programming mailing list