Skip to main content
8-Gravel
February 13, 2023
Solved

The array order reassign

  • February 13, 2023
  • 4 replies
  • 2181 views

Hi Masters

How to reassign the array elements order??

tks

KC_10577235_0-1676297286626.png

 

 

Best answer by lvl107

2.PNG

   Best Regards.

4 replies

25-Diamond I
February 13, 2023

Use C:=stack(A,B)

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

20-Turquoise
February 13, 2023

It seems like this :

1.PNG

Best Regards.

   Loi.

lvl10720-TurquoiseAnswer
20-Turquoise
February 14, 2023

2.PNG

   Best Regards.

25-Diamond I
February 14, 2023

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

25-Diamond I
February 13, 2023

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

 

 

16-Pearl
February 13, 2023

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