help with coll object

laura_richer's icon

hi,
I am doing an assignment for uni and we have to use the coll object to store numbers.
using the coll object before, I thought coll could only store messages, is there a way to store numbers in coll
or convert numbers to messages that can be stored into coll?

Thanks
Laura

seejayjames's icon

messages, symbols, numbers, it can store pretty much anything. use [pack] and [unpack] to store lists and retrieve them, where the [pack] has the coll index # as the first element in the list (even if you're just storing single numbers, which would be a two-element list: index, value).

[listfunnel] and [zl] could also be important to know with this, take a look... guarantee you'll get some new ideas :)

lfxyz's icon

Laura,

have you looked at the coll help file? Are you going to the MSP symposium tomorrow?