Skip to main content
8-Gravel
Feb 13, 2023 2:17 PM UTC
Solved

The array order reassign

Hi Masters

How to reassign the array elements order??

tks

KC_10577235_0-1676297286626.png

 

 

lvl107Answer
20-Turquoise
Feb 14, 2023 12:37 AM UTC

2.PNG

   Best Regards.

8 replies

Werner_E
25-Diamond I
Feb 13, 2023 3:28 PM UTC

Use C:=stack(A,B)

Ooops, I should have used my glasses, indeed!
Sorry! See the reply of @lvl107  for a correct solution.

Translate
20-Turquoise
Feb 13, 2023 4:41 PM UTC

It seems like this :

1.PNG

Best Regards.

   Loi.

Translate
lvl10720-TurquoiseAnswer
20-Turquoise
Feb 14, 2023 12:37 AM UTC

2.PNG

   Best Regards.

Translate
Werner_E
25-Diamond I
Feb 14, 2023 2:26 AM UTC

I guess this is just my second appraoch with differently named variables and without being ORIGIN-independent and without error checking, right? 😉

Translate
Werner_E
25-Diamond I
Feb 13, 2023 5:51 PM UTC

Here is a generic utility function which interleaves two vectors of arbitrary lengths. They do not necessarily have to be the same length.

Werner_E_0-1676310554456.png

File in Prime 6 format attached

 

EDIT: Added a slighter shorter variant

Werner_E_0-1676311116288.png

 

 

Translate
16-Pearl
Feb 13, 2023 8:45 PM UTC

This isn't better than the others already posted, just different.

 

2023-02-13_14-40-07.png

Or a small variation:

2023-02-13_14-43-57.png

Translate