Question to ArrTranspose()

Question to ArrTranspose()

Postby byte-one » Tue Mar 31, 2020 9: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
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: Question to ArrTranspose()

Postby nageswaragunupudi » Tue Mar 31, 2020 2:24 pm

ArrTranspose() itself is the oppostite of ArrTranspose()
Code: Select all  Expand view  RUN

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
User avatar
nageswaragunupudi
 
Posts: 10651
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Question to ArrTranspose()

Postby byte-one » Wed Apr 01, 2020 9:44 am

Great, Thanks!
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests