ArrayStack SΒΆ

bags.spad line 48

A stack represented as a flexible array.

=: (%, %) -> Boolean
from BasicType
~=: (%, %) -> Boolean
from BasicType
arrayStack: List S -> %
arrayStack([x, y, ..., z]) creates an array stack with first (top) element x, second element y, ..., and last element z.
coerce: % -> OutputForm
from CoercibleTo OutputForm
construct: List S -> %
from Collection S
convert: % -> InputForm if S has ConvertibleTo InputForm
from ConvertibleTo InputForm
copy: % -> %
from Aggregate
count: (S, %) -> NonNegativeInteger
from HomogeneousAggregate S
empty: () -> %
from Aggregate
empty?: % -> Boolean
from Aggregate
eq?: (%, %) -> Boolean
from Aggregate
eval: (%, Equation S) -> % if S has Evalable S
from Evalable S
eval: (%, List Equation S) -> % if S has Evalable S
from Evalable S
eval: (%, List S, List S) -> % if S has Evalable S
from InnerEvalable(S, S)
eval: (%, S, S) -> % if S has Evalable S
from InnerEvalable(S, S)
extract!: % -> S
from BagAggregate S
find: (S -> Boolean, %) -> Union(S, failed)
from Collection S
hash: % -> SingleInteger
from SetCategory
hashUpdate!: (HashState, %) -> HashState
from SetCategory
insert!: (S, %) -> %
from BagAggregate S
inspect: % -> S
from BagAggregate S
latex: % -> String
from SetCategory
less?: (%, NonNegativeInteger) -> Boolean
from Aggregate
map: (S -> S, %) -> %
from HomogeneousAggregate S
member?: (S, %) -> Boolean
from HomogeneousAggregate S
more?: (%, NonNegativeInteger) -> Boolean
from Aggregate
pop!: % -> S
from StackAggregate S
push!: (S, %) -> S
from StackAggregate S
reduce: ((S, S) -> S, %, S, S) -> S
from Collection S
remove: (S, %) -> %
from Collection S
removeDuplicates: % -> %
from Collection S
sample: %
from Aggregate
size?: (%, NonNegativeInteger) -> Boolean
from Aggregate
top: % -> S
from StackAggregate S

Aggregate

BagAggregate S

BasicType

CoercibleTo OutputForm

Collection S

ConvertibleTo InputForm if S has ConvertibleTo InputForm

Evalable S if S has Evalable S

finiteAggregate

HomogeneousAggregate S

InnerEvalable(S, S) if S has Evalable S

SetCategory

shallowlyMutable

StackAggregate S