There is no order to objects stored in a dictionary. It is an
unordered container.
On Apr 30, 2004, at 12:02 PM, jeremy@xxxxxxxxxxx wrote:
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/ .
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users