I suspect the reason for the domain errors are that the numbers are
integers and when you unbox them into an array together with literals
produces a mixed-type array which is a domain error.

Here is one method to produce an LF-delimted text array
   ; <@(LF ,~ ;:inv)"1 ] 8!:0 ts2

Another option is:
   require 'tables/dsv'
   (' ';'') makedsv ts2

On Sun, Nov 27, 2011 at 8:58 PM, Skip Cave <[email protected]> wrote:
> I have a 5 x 2 boxed array ts2:
>
>   ts2
> ┌───┬────────────────┐
> │355│ freeways       │
> ├───┼────────────────┤
> │356│ traffic        │
> ├───┼────────────────┤
> │357│ ninety one west│
> ├───┼────────────────┤
> │358│ yes            │
> ├───┼────────────────┤
> │361│ sixty          │
> └───┴────────────────┘
>
>   $ts2
> 5 2
>
> I want to unbox it so the result is a text array with carriage returns:
>
> 355 freeways
> 356 traffic
> 357 ninety one west
> 358 yes
> 361 sixty
>
> I tried lots of stuff:
>  ; ts2
> |domain error
> |       ;ts2
>
>  >  ts2
> |domain error
> |       >ts2
>
>   , ts2
> ┌───┬─────────┬───┬────────┬───┬────────────────┬───┬────┬───┬──────┐
> │355│ freeways│356│ traffic│357│ ninety one west│358│ yes│361│ sixty│
> └───┴─────────┴───┴────────┴───┴────────────────┴───┴────┴───┴──────┘
>
> Nothing seems to work. Any ideas?
>
> Skip
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to