Sparse arrays may not contain boxed elements, and a box may not contain a sparse array.
Henry Rich On Mon, Apr 25, 2022, 12:47 PM P Padilcdx <ppadil...@gmail.com> wrote: > Can I put a boxed element into a sparse array? > > Example: (<t) (<i1 i2)}a > > In <https://www.jsoftware.com/help/dictionary/d211.htm> representation > discussion is says: > “A sparse array y may be boolean, integer, floating point, complex, > literal, or boxed”<— > > But on the notes at the end of the page it says “Sparse literal and boxed > arrays not yet implemented”. > > Which very confusing to say the least. I tried different ways to do this > and none work so I’m inclined to believe the note as “boxed elements are > not implemented in sparse arrays”. > > Any clarification or examples of boxed element usage would be much > appreciated. > > Thanks > Pete > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm