Reference¶
Every function a Trebol program can call, with what it takes and what it gives. Each entry is read from the
function itself, as help shows it in the console, so it is always the function as it is.
An entry starts with what the function does and how it is called: its name, then its arguments in order.
Takes lists the kinds of value each argument accepts; a word ending in ! is a datatype, such as
integer!, or a set of them, such as series!. Refinements are the words written after a slash,
append/only, that change what a function does; the arguments a refinement takes follow the call’s own.
Gives is the kind of value it returns, when the function says so.
The functions are grouped by what they work on, and the last pages are the UI dialect’s: its styles, its words and the words of its theme. The tutorials show them at work: the language tutorial and building screens.
Every function¶
Signs¶
- · !== · ? · ?? · * · ** · / · // · + · < · << · <= · <> · = · == · > · >= · >> · >>>
A¶
abs · add · ajoin · all · also · alter · and · and~ · any · any-block? · any-function? · any-object? · any-path? · any-string? · any-type? · any-value? · any-word? · append · apply · arccosine · arcsine · arctangent · arctangent2 · array · as-pair · at · attempt
B¶
back · binary? · bind · bitset? · block? · body-of · bound? · break · browse
C¶
cached · can-go-back? · can-go-forward? · can? · cancel · case · catch · cause-error · change · char? · charset · checksum · clear · close · close-stream · closure · collect · collect-words · comment · complement · compose · compress · confirm · construct · context · context? · continue · copy · cosine
D¶
datatype? · date? · debase · decimal? · decompress · default · dehex · delay · difference · divide · do · do-file · does · download
E¶
either · email? · empty? · enbase · enhex · equal? · error? · even? · every · exclude · exit · exp · extract
F¶
fetch · field-error · fifth · file? · find · first · forall · foreach · forever · form · form-values · format-local · forskip · fourth · func · function · function?
G¶
get · get-path? · get-word? · go · go-back · go-forward · graph-of · greater-or-equal? · greater?
H¶
I¶
iban? · if · import · in · in? · index? · insert · insert-text · integer? · intersect · issue?
J¶
L¶
last · last? · layout · length? · lesser-or-equal? · lesser? · lit-path? · lit-word? · load · load-csv · load-json · load-local · load-query · load-xml · loaded-at · localize · log-10 · log-2 · log-e · logic? · loop · lowercase
M¶
machine · make · map-each · map? · max · min · mod · modulo · mold · money? · move · multiply
N¶
native? · negate · negative? · next · none? · not · not-equal? · now · number?
O¶
object? · odd? · on-close · on-error · on-message · op? · open · open-events · open-socket · or · or~
P¶
pad · pair? · paren? · parse · path? · percent? · pick · poke · positive? · power · print · print-page · probe · put
Q¶
R¶
random · read · read-clipboard · read-file · reduce · refinement? · reform · refresh · rejoin · remainder · remove · remove-each · remove-local · repeat · replace · restart · return · reverse · reword · round · rule
S¶
same? · save · save-local · scalar? · second · select · send · series? · set · set-language · set-path? · set-values · set-word? · shift · shift-left · shift-logical · shift-right · show-progress · sign? · sine · single? · skip · snapshot · sort · source · spawn · spec-of · split · square-root · strict-equal? · strict-not-equal? · string? · stylize · subtract · suffix? · swap · switch
T¶
tag? · tail · tail? · take · tangent · theme · third · throw · time? · to · to-binary · to-bitset · to-block · to-char · to-csv · to-date · to-decimal · to-email · to-file · to-get-path · to-get-word · to-hex · to-integer · to-issue · to-json · to-lit-path · to-lit-word · to-logic · to-map · to-money · to-pair · to-paren · to-path · to-percent · to-query · to-refinement · to-set-path · to-set-word · to-string · to-tag · to-time · to-tuple · to-url · to-word · to-xml · toast · tr · translated · trim · try · tuple? · type? · typeset?
U¶
union · unique · unless · unsaved · unsaved? · unset · unset? · until · uppercase · url? · use
V¶
validate-face · value? · values-of · view
W¶
wait · while · word? · words-of · write-clipboard · write-line