FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question to ArrTranspose()
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Question to ArrTranspose()
Posted: Tue Mar 31, 2020 09:41 AM

Is there a function (in opposite to ArrTranspose()) that make from a array in form {{1,2,3},{4,5,6},{7,8,9}} a array {{1,4,7},{2,5,8},{3,6,9}}?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Question to ArrTranspose()
Posted: Tue Mar 31, 2020 02:24 PM
ArrTranspose() itself is the oppostite of ArrTranspose()
Code (fw): Select all Collapse
ArrTranspose( {{1,2,3},{4,5,6},{7,8,9}} ) //-->  {{1,4,7},{2,5,8},{3,6,9}}
//and
ArrTranspose( {{1,4,7},{2,5,8},{3,6,9}} ) //-->  {{1,2,3},{4,5,6},{7,8,9}}
Regards



G. N. Rao.

Hyderabad, India
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: Question to ArrTranspose()
Posted: Wed Apr 01, 2020 09:44 AM

Great, Thanks!

Regards,
Günther
---------------------------------
office@byte-one.com

Continue the discussion