[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] Dictionary.keysDo



hello -

i'm stumped by dictionary's keysDo method. i was under the impression that
the medhod would 
sort through a manually created dictionary starting with the first item and
ending with the last.

that seemed to be the case with most of the dictionaries that I'd created,
until I created this one:

~params = Dictionary[
 			('lfo' -> 2),
 			('width' -> 1),
 			('mix' -> 1)];
		

~params.keysDo({ arg par, id;
		
			[ par, id].postln;
		
			
		});

[ mix, 0 ]
[ lfo, 1 ]
[ width, 2 ]

looking at keysValuesArrayDo, i see no reason why the key order would be
scrambled. any ideas?

jeremy




--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .