I'm sure others add to my perhaps simplistic (hopefully not inaccurate) explanation, but in essence it is because a homogeneous array of type "boxed" can contain atoms of different types, which accomplishes the same thing.
]array=:3 5$'Text';3.45;2882;'Not numeric';2r3;0;1 +-----------+----+----+-----------+----+ |Text |3.45|2882|Not numeric|2r3 | +-----------+----+----+-----------+----+ |0 |1 |Text|3.45 |2882| +-----------+----+----+-----------+----+ |Not numeric|2r3 |0 |1 |Text| +-----------+----+----+-----------+----+ 3!:0 array NB. Type of array 32 3!:0 each array NB. Type of elements in array +-+---+-+-+---+ |2|8 |4|2|128| +-+---+-+-+---+ |1|1 |2|8|4 | +-+---+-+-+---+ |2|128|1|1|2 | +-+---+-+-+---+ >From http://www.jsoftware.com/help/dictionary/dx003.htm Type. The internal type of the noun y , encoded as follows: 1 boolean 2 literal 4 integer 8 floating point 16 complex 32 boxed 64 extended integer 128 rational 1024 sparse boolean 2048 sparse literal 4096 sparse integer 8192 sparse floating point 16384 sparse complex 32768 sparse boxed 65536 symbol 131072 unicode > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Fuchs Ira > Sent: Monday, 28 May 2007 14:44 > To: [email protected] > Subject: [Jprogramming] J and heterogeneous arrays > > I was reading the J for APL Programmers paper and I was > wondering if someone could explain the rationale underlying > the decision to not include heterogeneous arrays in J. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
