Hi!

I have 2 or more lists of substantives. The lists must be as simple as
possible, since they are done

by a translator not familiar with computer languages.
From the lists I want to get a boxed matrix.
The numbers in each line of the list are only for reference purposes,
since the lists

are normally hundreds of lines. I wonder if there are a better way to
solve the problem

than in the example.



cut=:' '&$: :([: -.&a: <;._2@,~)

ingl=.(0 : 0)

1;English

2;Write your name

3;Options

)

ingl=. > ';' cut each <;._2 ingl



sved=. (0 : 0)

1;Svenska

2;Skriv ditt namn

3;Inställningar

)

sved=.1{"1 > ';' cut each <;._2 sved

]matx=:ingl,.sved



┌─┬───────────────┬───────────────┐

│1 │English                            │Svenska        │

├─┼───────────────┼───────────────┤

│2 │Write your name              │Skriv ditt namn│

├─┼───────────────┼───────────────┤

│3 │Options                           │Inställningar │

└─┴───────────────┴───────────────┘



 Thanks,

Gian Medri
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to