list trouble

Nov 9, 2008 at 3:28am

list trouble

Hi,

I’m trying to compress a list of symbols

from something like this:

a b c d e

into this:

abcde

Essentially I want to treat the list as a symbol and remove all the spaces. How do I do it?

Thanks

#40746
Nov 9, 2008 at 4:00am

On Nov 8, 2008, at 7:28 PM, Craig Fahner wrote:

> I’m trying to compress a list of symbols

sprintf or combine

– Pasted Max Patch, click to expand. –

Chris Muir
cbm@well.com

http://www.xfade.com

#144461
Nov 9, 2008 at 5:37am

Use [tosymbol] but send it the message “separator” first. Please note that it will show all floats to 4 decimal places.

lh

#144462
Nov 9, 2008 at 6:39am

or regexp if you are unsure of the number of elements in your list:

– Pasted Max Patch, click to expand. –
#144463
Nov 9, 2008 at 6:11pm

Thanks, sprintf worked just fine.

#144464

You must be logged in to reply to this topic.