Great!

I knew that there would be an elegant solution but still...

Thank you Bob!

Esa

-----Original Message-----
From: Programming <programming-boun...@forums.jsoftware.com> On Behalf Of 
'robert therriault' via Programming
Sent: Wednesday, March 10, 2021 7:16 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Unboxing problem

Hi Esa,

I think that monadic ; (Raze) is what you are looking for.

      ]a=.1 3 8;6 9;2 4;5;0;7
┌─────┬───┬───┬─┬─┬─┐
│1 3 8│6 9│2 4│5│0│7│
└─────┴───┴───┴─┴─┴─┘
   ; a
1 3 8 6 9 2 4 5 0 7

Cheers, bob

> On Mar 9, 2021, at 20:51, Lippu Esa <esa.li...@varma.fi> wrote:
>
>   ]a=.1 3 8;6 9;2 4;5;0;7

----------------------------------------------------------------------
For information about J forums see 
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=04%7C01%7C%7C281399df372a47d265b808d8e383adb8%7C5090e269dbea4e98a9aa3e70be5890f7%7C0%7C0%7C637509501993050037%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FJI18V5vaedszWpM52E8FmVkJ78eqV51fxyjbjdvdMU%3D&amp;reserved=0

Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain sen 
vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, pyydämme sinua 
poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan asiasta välittömästi 
viestin lähettäjälle. Viestin sisällön paljastaminen, kopioiminen tai muu 
käyttö on kielletty.

The contents of this message and any attachments are confidential and meant 
solely for the intended recipient. If you are not the intended recipient, we 
kindly ask that you delete the message and its attachments, and immediately 
notify the sender of the email. Disclosing, copying or using the contents of 
the message is strictly prohibited.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to