-
... e model changes it notifies all of its dependants. In this case the model has a dictionary of dependants and iterates through those. Another common pattern is NotificationCenter wherein an object emits a notification and clients can registe ...
-
... key , which is assumed to be found inside each element of the receiver. ( a = [ Dictionary [ \a ->5, \b ->1, \c ->62], Dictionary [ \a ->2, \b ->9, \c ->65], Dictionary [ \a ->8, \b ->5, \c ->68], Dictionary [ \a ->1, \b ->3, \c ->61], Dict ...
-
... ect from the IdentityBag. IdentityBag [1, 2, 3].remove(3); contents Returns the dictionary that stores the objects in pairs (obj -> numberOfObjects) IdentityBag [ \a , \b , \c , \c ].contents; Iteration: do(function) Evaluates function for ...
-
... argument to the created function. It only applies to a single method, list, or dictionary call, not to a more complex nested expression. for example: f = _ + 2; f is now a function of one argument. f.value(7); it is equivalent to having wr ...
-
... a.clear(3); Adding new roles: Roles can be added on the fly. They are kept in a dictionary ( buildMethods) in AbstractPlayControl. A second dictionary ( proxyControlClasses ) provides the wrapper class for a given key. Here is a new role th ...
-
... ces of Collection. There are many types of Collections including List , Array , Dictionary , Bag , Set , SortedList , etc. Class Methods: *newFrom(collection) Creates a new Collection from another collection. This supports the interface for ...
-
... t of the .quark File This quarkfile is written in sc code, and should contain a dictionary with basic information about the package. ( // required: \name : "theName" , \path : "foldername" , // almost always the same as the quark name \summ ...
-
... e next action. dict: If 'pattern' is given as a symbol (see below), this is the dictionary in which the pattern will be looked up. If not specified, the Pdef collection will be used. pattern: If 'method' is seq or par, this is a pattern or ...
-
... ove anObject from the Bag. Bag [1, 2, 3].remove(3).postln; contents Returns the dictionary that stores the objects in pairs (obj -> numberOfObjects) Bag [ "a" , "b" , "c" , "c" ].contents; Iteration: do(function) Evaluates function for each ...
-
... server); }, The function uses the value of ~ type to select a function from the Dictionary held in ~ eventTypes . The collection of eventTypes can be readily extended using *addEventType(key, function) . Here is an example the uses the even ...