Shift Array

Plugins linking to this thread: (hide)

Shift ArrayAuthor: Constantine Tarasenkov
Does a »circular« shift for any array by any amount of steps.

local backup: Shift Array.xsicompound

Post Reply
iamVFX
Posts: 697
Joined: 24 Sep 2010, 18:28

Shift Array

Post by iamVFX » 05 Dec 2011, 13:15

Shifts indices of the array values
Attachments
Shift_Array.png
Shift_Array.png (166.23 KiB) Viewed 2150 times
Shift Array.xsicompound
(11 KiB) Downloaded 105 times

iamVFX
Posts: 697
Joined: 24 Sep 2010, 18:28

Re: Shift Array

Post by iamVFX » 05 Dec 2011, 13:30

For example:
Attachments
Example.png
Example.png (37.66 KiB) Viewed 2143 times

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: Shift Array

Post by Hirazi Blue » 05 Dec 2011, 13:53

Nice! thank you... :ymhug:
Now if we only could get a true multi-type arrays and some additional stack-like nodes to use (and abuse) them.
(BTW - Yes, at heart I'm still a Forth afficionado)
Stay safe, sane & healthy!

iamVFX
Posts: 697
Joined: 24 Sep 2010, 18:28

Re: Shift Array

Post by iamVFX » 05 Dec 2011, 15:52

Hirazi Blue wrote:(BTW - Yes, at heart I'm still a Forth afficionado)
Wow, the hardcore one here :ymapplause:

I've also wish multidimensional arrays in ICE

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: Shift Array

Post by Hirazi Blue » 05 Dec 2011, 16:32

Yes, but I meant something else (true multidimensional arrays would be very nice, also).
With multi-type arrays I meant an array I can drop any type of value into (scalars, integers, 3d vectors and the rest peacefully living together in one single array), where I do not have to convert them to one single type to use them in one array. That way true stack-like functionality (hence: "Forth at heart") would become possible.
;)
Stay safe, sane & healthy!

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests