Dictionary


Collections-Unordered

Comment:

I represent a set of elements that can be viewed from one of two perspectives: a set of associations, or a set of values that are externally named where the name can be any object that responds to =. The external name is referred to as the key.

Hierarchy:

ProtoObject
Object
Collection
Set
Dictionary
  • HtmlAttributes
  • IdentityDictionary
  • LiteralDictionary
  • MethodDictionary
  • PluggableDictionary
  • WeakKeyDictionary
  • WeakValueDictionary

Summary:

methods:

instance class
accessing
  • associationAt:
  • associationAt:ifAbsent:
  • associationDeclareAt:
  • at:
  • at:ifAbsent:
  • at:ifAbsentPut:
  • at:ifPresent:
  • at:put:
  • keyAtIdentityValue:
  • keyAtIdentityValue:ifAbsent:
  • keyAtValue:
  • keyAtValue:ifAbsent:
  • keys
  • values
adding
  • add:
  • declare:from:
enumerating
  • associationsDo:
  • collect:
  • do:
  • keysAndValuesDo:
  • keysDo:
  • select:
  • valuesDo:
printing
  • flattenOnStream:
  • printOn:
  • storeOn:
private
  • copy
  • errorKeyNotFound
  • errorValueNotFound
  • keyAt:
  • noCheckAdd:
  • rehash
  • scanFor:
  • valueAtNewKey:put:atIndex:declareFrom:
removing
  • remove:
  • remove:ifAbsent:
  • removeKey:
  • removeKey:ifAbsent:
  • removeUnreferencedKeys
  • unreferencedKeys
set operations testing
  • hasContentsInExplorer
  • includes:
  • includesKey:
  • occurrencesOf:
user interface
  • inspect
  • inspectFormsWithLabel:
  • inspectWithLabel:
instance creation
  • newFrom:

Detail:

instance methods:

set operations
intersectionWithSet: aSet

	"Return the elements in common with receiver and aSet 
	as a set with one instance of each value in receiver that is equal to one in aSet"

	^self values asSet intersectionWithSet: aSet

class methods:

^top


- made by Dandelion -