On 2020-08-21 10:55, 'Rob Hodgkinson' via Programming wrote:
...

q)0N 2#args
           /Comment: q uses the NULL value (0N) to say “I know the
list is in pairs, so work out the rows" (hence here 3 x 2)
"Code" 33
"Name" "Iverson"
"Age”  34


The equivalent mechanism in APL or J is along these lines:

   args=: 'Code';33;'Name';'Iverson';'Age';34


   _2]\args
┌────┬───────┐
│Code│33     │
├────┼───────┤
│Name│Iverson│
├────┼───────┤
│Age │34     │
└────┴───────┘
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to