Grasshopper

algorithmic modeling for Rhino

recombine different lists and preserving the order

Hi Guys

I'm driven by need to process a list and split negative from positive numbers to perform different actions on the 2 resulting sublists

After this i need to recombine the 2 lists but i want the items on the resulting list to get same index ( order )  they had before dispatch component , see list indicated with "V" for needed result ( just an example , no number processing in to this example )

I am just not able to remember how to combine the items togheter again

if anyone can help I appreciate , thanks

Ivan

Views: 1495

Replies to This Discussion

You're looking for the [Sift] / [Combine] pattern.

(ignore the errors in the format components, that's a bug and unrelated.

Attachments:

Many thanks David !!!  this is exactly what i need.

cheers ;)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service