DictionaryOperations SΒΆ
aggcat.spad line 418 [edit on github]
S: Type
This category is a collection of operations common to both categories Dictionary and MultiDictionary
- #: % -> NonNegativeInteger if % has finiteAggregate
from Aggregate
- =: (%, %) -> Boolean if % has finiteAggregate and S has BasicType or S has SetCategory
from BasicType
- ~=: (%, %) -> Boolean if % has finiteAggregate and S has BasicType or S has SetCategory
from BasicType
- any?: (S -> Boolean, %) -> Boolean if % has finiteAggregate
from HomogeneousAggregate S
- coerce: % -> OutputForm if S has CoercibleTo OutputForm
from CoercibleTo OutputForm
- construct: List S -> %
from Collection S
- convert: % -> InputForm if S has ConvertibleTo InputForm
from ConvertibleTo InputForm
- count: (S -> Boolean, %) -> NonNegativeInteger if % has finiteAggregate
from HomogeneousAggregate S
- count: (S, %) -> NonNegativeInteger if % has finiteAggregate and S has BasicType
from HomogeneousAggregate S
- dictionary: () -> %
dictionary()
$D
creates an empty dictionary of typeD
.
- dictionary: List S -> %
dictionary([x, y, ..., z])
creates a dictionary consisting of entriesx, y, ..., z
.
- eval: (%, Equation S) -> % if S has SetCategory and S has Evalable S
from Evalable S
- eval: (%, List Equation S) -> % if S has SetCategory and S has Evalable S
from Evalable S
- eval: (%, List S, List S) -> % if S has SetCategory and S has Evalable S
from InnerEvalable(S, S)
- eval: (%, S, S) -> % if S has SetCategory and S has Evalable S
from InnerEvalable(S, S)
- every?: (S -> Boolean, %) -> Boolean if % has finiteAggregate
from HomogeneousAggregate S
- extract!: % -> S
from BagAggregate S
- find: (S -> Boolean, %) -> Union(S, failed)
from Collection S
- insert!: (S, %) -> %
from BagAggregate S
- inspect: % -> S
from BagAggregate S
- latex: % -> String if S has SetCategory
from SetCategory
- less?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- map!: (S -> S, %) -> %
from HomogeneousAggregate S
- map: (S -> S, %) -> %
from HomogeneousAggregate S
- max: % -> S if S has OrderedSet and % has finiteAggregate
from HomogeneousAggregate S
- max: ((S, S) -> Boolean, %) -> S if % has finiteAggregate
from HomogeneousAggregate S
- member?: (S, %) -> Boolean if % has finiteAggregate and S has BasicType
from HomogeneousAggregate S
- members: % -> List S if % has finiteAggregate
from HomogeneousAggregate S
- min: % -> S if S has OrderedSet and % has finiteAggregate
from HomogeneousAggregate S
- more?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- parts: % -> List S if % has finiteAggregate
from HomogeneousAggregate S
- reduce: ((S, S) -> S, %) -> S if % has finiteAggregate
from Collection S
- reduce: ((S, S) -> S, %, S) -> S if % has finiteAggregate
from Collection S
- reduce: ((S, S) -> S, %, S, S) -> S if % has finiteAggregate and S has BasicType
from Collection S
- remove!: (S -> Boolean, %) -> % if % has finiteAggregate
remove!(p, d)
destructively changes dictionaryd
by removing all entriesx
such thatp(x)
istrue
.
- remove!: (S, %) -> % if % has finiteAggregate and S has BasicType
remove!(x, d)
destructively changes dictionaryd
by removing all entriesy
such thaty = x
.
- remove: (S -> Boolean, %) -> % if % has finiteAggregate
from Collection S
- remove: (S, %) -> % if % has finiteAggregate and S has BasicType
from Collection S
- removeDuplicates: % -> % if % has finiteAggregate and S has BasicType
from Collection S
- select!: (S -> Boolean, %) -> % if % has finiteAggregate
select!(p, d)
destructively changes dictionaryd
by removing all entriesx
such thatp(x)
is nottrue
.
- select: (S -> Boolean, %) -> % if % has finiteAggregate
from Collection S
- size?: (%, NonNegativeInteger) -> Boolean
from Aggregate
BasicType if % has finiteAggregate and S has BasicType or S has SetCategory
CoercibleTo OutputForm if S has CoercibleTo OutputForm
ConvertibleTo InputForm if S has ConvertibleTo InputForm
Evalable S if S has SetCategory and S has Evalable S
InnerEvalable(S, S) if S has SetCategory and S has Evalable S
SetCategory if S has SetCategory