Reference SΒΆ

boolean.spad line 1 [edit on github]

Reference is for making a changeable instance of something.

=: (%, %) -> Boolean

a=b tests if a and b are the same pointer/reference.

~=: (%, %) -> Boolean if S has SetCategory

from BasicType

coerce: % -> OutputForm if S has SetCategory

from CoercibleTo OutputForm

deref: % -> S

deref(n) is equivalent to elt(n).

elt: % -> S

elt(n) returns the object n.

latex: % -> String if S has SetCategory

from SetCategory

ref: S -> %

ref(n) creates a pointer (reference) to the object n.

setelt!: (%, S) -> S

setelt!(n, m) changes the value of the object n to m.

setref: (%, S) -> S

setref(n, m) same as setelt!(n, m).

BasicType if S has SetCategory

CoercibleTo OutputForm if S has SetCategory

SetCategory if S has SetCategory