Problems routing lists

    Jun 16 2010 | 6:19 pm
    I'm receiving a list from processing. The list goes like this: ( index number (this is for routing) - 5 more values )* Five times one after another. There are 9 of those index numbers who goes from 0 to 9 on a string because i want to route them later.
    i f f i i i i f f i i i i f f i i i i f f i i i i f f i i i (here is 5 times, don't want to disturb your view). The problem is that i can't route the index number and get the 5 values after it. When i try to see what's coming in with a prepend set and a message box i saw that the 5 values comes like this " i f f i i i " and i can't route those " " simbols i think that's the problem, but i can't resolve it because the route and zl objects doesn't accept ".
    if anyone could help or tell me anything about this it would be very much appreciatted.

    • Jun 16 2010 | 6:24 pm
      try zl slice or zl iter, you can split up the lists into individual packets:
      index value1 value2 value3 value4 value5
      you'll still have the index for routing, though at this point you would know which chunk it came from anyway :)
      yep using the prepend set/message box is probably turning the mini-list into a symbol, which isn't what you want for numerical lists.
    • Jun 16 2010 | 7:14 pm
      hey! that's working! :D
      Thanks, but i can't route the index with the route object anyway, did you know why?
      Thanks again.
    • Jun 17 2010 | 1:27 am
      not sure, from your description [route 0 1 2 3 4 5 6 7 8 9] should work. It does strip the index off the list, so if you need to keep it, you'd need to re-combine it afterwards.