-
+ Collection { itemsHisto { var dict = Dictionary.new; this.do { |el| var n = dict[el] ? 0; dict[el] = n + 1 }; ^dict } duplicates { ^this.itemsHisto.select(_ > 1).keys(Array) } }
-
// HierSchDict (c) 2007 - 2008 Tom Hall // version 2007-02-3 HierSchDict : Dictionary { // counter is new arg addEntry {arg when, pri, fn, streamVal, counter; this.put(when, this[when].add([pri, fn, streamVal, counter])); } beatInfo {arg be ...
-
... o that they are consistent. . targets An array of the targets. Each target is a Dictionary of two elements: \pos and \strength. Returns: An Array of Dictionaries . addTarget Add a target. Each target is a Dictionary containing two elements: ...
-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
// wslib 2005 // find all keys for a value + Dictionary { findKeysForValue { arg argValue; var result = []; this.keysValuesArrayDo(array, { arg key, val, i; if (argValue == val, { result = result ++ [key]}) }); ^result } }
-
... sed, list can be assigned to an envir variable later on. Defaults to inf. envir Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
... standard technique in the field of sparse representations . You must supply a "dictionary" of atoms, given as a Buffer. Each channel of the Buffer is one atom (this means the atoms all have to be the same length - but zero-padding is OK). ...