• ### triggering packed items all at once? order of operations?

Hi!

I have a group of floats i.e. [1 2 3 4 5 (

I have to process these floats to create new values.

So I use unpack to extract each item... I apply some function to 1 some function to 2 etc etc...

For example.

Say 1 gets multiplied by 2 . 2 gets divided by 3, 4 gets divided by 10...

I now have a new list of values that I have derived from the original list...(they are all seperate objects) this is where my problem arrises. I want to pack these items to send them to another functions, however they all must arrive at the same time! when I use pack, the first items triggers pack regardless of if the next calculation is complete. What i need to do is this.

Each item in the list [1 2 3 4 5 ( must complete its following calculations and then be repacked and sent to the next part of the chain.) The next part of the chain unpacks the corresponding values. Only once all the values are recieved should the unpack commence.

If this is confusing here is an example.

[1 2 3 4 5 (

unpack f1 f2 f3 f4 f5

f12 = x1
f2
3 = x2
f34 = x3
f4
10 = x4
f5*0 = x5

pack x1 x2 x3x4 x5 -> outlet

in a seperate abstraction: inlet -> unpack... now what I need is to unpack only after all the calcuations are finished. Does anyone know how to do this? Should i not use pack?

• | Posts 2 | Views 1575
• nevermind I think i figured it out based on the order of unpack/pack. I didnt realize it was always right to left

| Posts 2 | Views 1575
Internal error.

Oops! Looks like something went wrong!