LibraryΒΆ
files.spad line 348 [edit on github]
This domain provides a simple way to save values in files.
- close!: % -> %
close!(f)
returns the libraryf
closed to input and output.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- convert: % -> InputForm if Record(key: String, entry: Any) has ConvertibleTo InputForm
from ConvertibleTo InputForm
- count: (Record(key: String, entry: Any), %) -> NonNegativeInteger if Record(key: String, entry: Any) has BasicType and % has finiteAggregate
from HomogeneousAggregate Record(key: String, entry: Any)
- dictionary: () -> %
from DictionaryOperations Record(key: String, entry: Any)
- dictionary: List Record(key: String, entry: Any) -> %
from DictionaryOperations Record(key: String, entry: Any)
- elt: (%, Symbol) -> Any
elt(lib, k)
orlib
.k
extracts the value corresponding to the keyk
from the librarylib
.
- eval: (%, Any, Any) -> % if Any has Evalable Any
from InnerEvalable(Any, Any)
- eval: (%, Equation Any) -> % if Any has Evalable Any
- eval: (%, Equation Record(key: String, entry: Any)) -> % if Record(key: String, entry: Any) has SetCategory and Record(key: String, entry: Any) has Evalable Record(key: String, entry: Any)
- eval: (%, List Any, List Any) -> % if Any has Evalable Any
from InnerEvalable(Any, Any)
- eval: (%, List Equation Any) -> % if Any has Evalable Any
- eval: (%, List Equation Record(key: String, entry: Any)) -> % if Record(key: String, entry: Any) has SetCategory and Record(key: String, entry: Any) has Evalable Record(key: String, entry: Any)
- eval: (%, List Record(key: String, entry: Any), List Record(key: String, entry: Any)) -> % if Record(key: String, entry: Any) has SetCategory and Record(key: String, entry: Any) has Evalable Record(key: String, entry: Any)
from InnerEvalable(Record(key: String, entry: Any), Record(key: String, entry: Any))
- eval: (%, Record(key: String, entry: Any), Record(key: String, entry: Any)) -> % if Record(key: String, entry: Any) has SetCategory and Record(key: String, entry: Any) has Evalable Record(key: String, entry: Any)
from InnerEvalable(Record(key: String, entry: Any), Record(key: String, entry: Any))
- fill!: (%, Any) -> %
from IndexedAggregate(String, Any)
- find: (Record(key: String, entry: Any) -> Boolean, %) -> Union(Record(key: String, entry: Any), failed)
from Collection Record(key: String, entry: Any)
- first: % -> Any
from IndexedAggregate(String, Any)
- latex: % -> String
from SetCategory
- less?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- library: FileName -> %
library(ln)
creates a new library file.
- map!: (Any -> Any, %) -> %
from HomogeneousAggregate Any
- map!: (Record(key: String, entry: Any) -> Record(key: String, entry: Any), %) -> %
from HomogeneousAggregate Record(key: String, entry: Any)
- map: ((Any, Any) -> Any, %, %) -> %
from TableAggregate(String, Any)
- map: (Any -> Any, %) -> %
from HomogeneousAggregate Any
- map: (Record(key: String, entry: Any) -> Record(key: String, entry: Any), %) -> %
from HomogeneousAggregate Record(key: String, entry: Any)
- max: % -> Any if Any has OrderedSet and % has finiteAggregate
from HomogeneousAggregate Any
- max: % -> Record(key: String, entry: Any) if Record(key: String, entry: Any) has OrderedSet and % has finiteAggregate
from HomogeneousAggregate Record(key: String, entry: Any)
- maxIndex: % -> String
from IndexedAggregate(String, Any)
- member?: (Record(key: String, entry: Any), %) -> Boolean if Record(key: String, entry: Any) has BasicType and % has finiteAggregate
from HomogeneousAggregate Record(key: String, entry: Any)
- min: % -> Any if Any has OrderedSet and % has finiteAggregate
from HomogeneousAggregate Any
- min: % -> Record(key: String, entry: Any) if Record(key: String, entry: Any) has OrderedSet and % has finiteAggregate
from HomogeneousAggregate Record(key: String, entry: Any)
- minIndex: % -> String
from IndexedAggregate(String, Any)
- more?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- pack!: % -> %
pack!(f)
reorganizes the filef
on disk to recover unused space.
- reduce: ((Record(key: String, entry: Any), Record(key: String, entry: Any)) -> Record(key: String, entry: Any), %, Record(key: String, entry: Any), Record(key: String, entry: Any)) -> Record(key: String, entry: Any) if Record(key: String, entry: Any) has BasicType and % has finiteAggregate
from Collection Record(key: String, entry: Any)
- remove!: (Record(key: String, entry: Any), %) -> % if Record(key: String, entry: Any) has BasicType and % has finiteAggregate
from DictionaryOperations Record(key: String, entry: Any)
- remove!: (String, %) -> Union(Any, failed)
from KeyedDictionary(String, Any)
- remove: (Record(key: String, entry: Any), %) -> % if Record(key: String, entry: Any) has BasicType and % has finiteAggregate
from Collection Record(key: String, entry: Any)
- removeDuplicates: % -> % if Record(key: String, entry: Any) has BasicType and % has finiteAggregate
from Collection Record(key: String, entry: Any)
- setelt!: (%, Symbol, Any) -> Any
lib.k := v
saves the valuev
in the librarylib
. It can later be extracted using the keyk
.
- size?: (%, NonNegativeInteger) -> Boolean
from Aggregate
- table: () -> %
from TableAggregate(String, Any)
- table: List Record(key: String, entry: Any) -> %
from TableAggregate(String, Any)
BagAggregate Record(key: String, entry: Any)
Collection Record(key: String, entry: Any)
ConvertibleTo InputForm if Record(key: String, entry: Any) has ConvertibleTo InputForm
Dictionary Record(key: String, entry: Any)
DictionaryOperations Record(key: String, entry: Any)
Evalable Any if Any has Evalable Any
Evalable Record(key: String, entry: Any) if Record(key: String, entry: Any) has SetCategory and Record(key: String, entry: Any) has Evalable Record(key: String, entry: Any)
HomogeneousAggregate Record(key: String, entry: Any)
InnerEvalable(Any, Any) if Any has Evalable Any
InnerEvalable(Record(key: String, entry: Any), Record(key: String, entry: Any)) if Record(key: String, entry: Any) has SetCategory and Record(key: String, entry: Any) has Evalable Record(key: String, entry: Any)