JuliaWSAggregate EΒΆ
jwsagg.spad line 1 [edit on github]
Julia Wolfram Symbolic aggregate (WS
list) using Wolfram Symbolic Transport Protocol.
- #: % -> JuliaWSInteger
\#(agg)
returns the length ofagg
. 0 if it is a scalar, an index for example.
- accumulate: % -> % if E has JuliaWSNumber
accumulate(agg)
- append: (%, E) -> %
append(l, elt)
appends elt to the listl
.
- coerce: % -> JuliaWSExpression
coerce(agg)
coercesagg
to a JuliaWSExpression.- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: List E -> %
coerce(list)
tries to coercelist
as a JuliaWSAggregate.
- convert: % -> String
from ConvertibleTo String
- delete: (%, JuliaWSList JuliaWSInteger) -> %
delete(l, inds)
deletes element(s
) of the listl
at index(es) inds.
- differences: % -> % if E has JuliaWSNumber
differences(agg)
- dimensions: % -> JuliaWSList JuliaWSInteger
dimensions(agg)
returns dimensions ofagg
.
- elt: (%, Integer) -> E
elt(agg,i)
returns thei
-th element.
- extract: (%, JuliaWSExpression) -> %
extract(agg, parts)
extracts parts ofagg
.
- first: % -> E
first(agg)
returns the first element ofagg
.
- insert: (%, E, JuliaWSInteger) -> %
insert(l, elt, ind)
insertselt
to the listl
at index ind.
- intersection: (%, %) -> %
intersection(agg1, agg2)
is the intersection set operator.
- jlAbout: % -> Void
from JuliaObjectType
- jlApply: (String, %) -> %
from JuliaObjectType
- jlApply: (String, %, %) -> %
from JuliaObjectType
- jlApply: (String, %, %, %) -> %
from JuliaObjectType
- jlApply: (String, %, %, %, %) -> %
from JuliaObjectType
- jlApply: (String, %, %, %, %, %) -> %
from JuliaObjectType
- jlApply: (String, %, %, %, %, %, %) -> %
from JuliaObjectType
- jlEval: % -> %
from JuliaWSObject
- jlHead: % -> JuliaWSSymbol
from JuliaWSObject
- jlId: % -> String
from JuliaObjectType
- jlNumeric: % -> %
from JuliaWSObject
- jlNumeric: (%, PositiveInteger) -> %
from JuliaWSObject
- jlRef: % -> SExpression
from JuliaObjectType
- jlref: String -> %
from JuliaObjectType
- jlSymbolic: % -> String
from JuliaWSObject
- jlType: % -> String
from JuliaObjectType
- join: (%, %) -> %
join(agg1, agg2)
join the two aggreagtesagg1
andagg2
.
- jWSAggregate: List E -> %
jWSAggregate(list)
constructs agg as a JuliaWSAggregate.
- jWSInterpret: (String, String) -> %
from JuliaWSObject
- last: % -> E
last(agg)
returns the last element ofagg
.
- latex: % -> String
from SetCategory
- length: % -> JuliaWSInteger
length(agg)
returns the length ofagg
. 0 if it is a scalar, an index for example.
- mutable?: % -> Boolean
from JuliaObjectType
- nothing?: % -> Boolean
from JuliaObjectType
- part: (%, JuliaWSInteger) -> E
part(agg,i)
returns thei
-th element.
- prepend: (%, E) -> %
prepend(l, elt)
prepends elt to the listl
.
- qelt: (%, Integer) -> E
qelt(agg,i)
returns thei
-th element. No checks are done at the FriCAS level.
- qsetelt!: (%, Integer, E) -> %
qsetelt!(l,i,elem)
returnsl
withi
-th element replaced byelem
. No checks are done at the FriCAS level.
- qsetelt: (%, Integer, E) -> %
qsetelt(l,i,elem)
returns a copy ofl
withi
-th element replaced by the elementelem
. No checks are done at the FriCAS level.
- removeDuplicates: % -> %
removeDuplicates(agg)
removes duplicate elements.
- replacePart: (%, %) -> %
replacePart(expr, part)
replacesexpr
using rule(s
) expressing position(s
).
- rest: % -> %
rest(agg)
returnsagg
without the first element.
- reverse: % -> %
reverse(agg)
reverses the elements ofagg
.
- reverse: (%, JuliaWSInteger) -> %
reverse(agg, lev)
reverses the elements ofagg
at level lev.
- reverse: (%, JuliaWSList JuliaWSInteger) -> %
reverse(agg, levels)
reverses the elements ofagg
using levels.
- riffle: (%, %) -> %
riffle(agg, elts)
riffles (interleaves) element(s
) elts i.e. insert them.
- riffle: (%, %, %) -> %
riffle(agg, elts, inds)
riffles (interleaves) element(s
)elts
i.e. insert them. If inds is {min, max,n
} insert at position min, min+n, min+2n..max.
- setelt!: (%, Integer, E) -> %
setelt!(l,i,elem)
returnsl
withi
-th element replaced byelem
.
- setelt: (%, Integer, E) -> %
setelt(l,i,elem)
returns a copy ofl
withi
-th element replaced by the elementelem
.
- setIntersection: (%, %) -> %
intersection(
agg1
,agg2
) is the intersection set operator.
- sort: % -> %
sort(agg)
returnsagg
in sorted order. For complex numbers, sorts them by their real part first.
- sorted?: % -> Boolean
sorted?(agg)
checks whetheragg
is sorted or not.
- string: % -> String
from JuliaObjectType
- take: (%, Integer) -> %
take(l,i)
returns the firsti
-th elements.
- take: (%, JuliaWSList JuliaWSInteger) -> %
take(l,i)
returns the firsti
-th elements.
- toString: % -> String
from JuliaWSObject
- total: % -> E if E has JuliaWSNumber
total(agg)
returns the sum of the elements inagg
.
- union: (%, %) -> %
union(agg1, agg2)
is the union set operator. Elements are sorted on output.