A
and()
π Language Spec | Howto Guide
- A built-in function that accepts a list and returns the unification of all elements in the list
B
bool
π Language Spec
- A primitive type representing the set of Boolean
truth values denoted by the keywords
true
andfalse
Built-in functions
π Language Spec
- Predeclared functions provided by the CUE runtime that are available without being imported
- see also:
and()
|close()
|div()
|mod()
|len()
|or()
|quo()
|rem()
bytes
π Language Spec | Tour
- A primitive type representing a possibly empty sequence of arbitrary bytes
C
close()
π Language Spec | Howto Guide
- A built-in function that converts a partially defined (βopenβ) struct to a fully defined (βclosedβ) struct
D
Default value
π Tour | Howto Guide
- The single element of a disjunction that CUE assigns to a field if and only if unification fails to resolve a concrete value for the field
- An element of a disjunction prefixed with an asterisk (
*
)
Disjunction
div()
π Language Spec | Howto Guide
- A built-in function that performs Euclidean division with its parameters and returns the integer quotient
F
Field
π Tour
- A key-value pair inside a map, associating a value with a given set of keys
Field constraint
π Language Spec | Tour
- A field constraint restricts a fieldβs value without actually defining the field, with the field only forming part of the output if it is successfully unified with a concrete value
- see also: Required field constraint | Optional field constraint
float
π Language Spec | Tour
- A primitive type representing the set of all decimal floating-point numbers
J
JSON
π json.org
- βA lightweight data-interchange format β¦ easy for humans to read and write [and] easy for machines to parse and generate.β β json.org
- A data format understood by the
cue
CLI, which can both parse and emit JSON as input and output
L
len()
π Language Spec | Howto Guide
- A built-in function that returns the lengths of various types as an integer
List
π Language Spec | Tour
- An arbitrary sequence of CUE values, enclosed in square brackets (
[
]
) with values separated by commas (,
)
M
mod()
π Language Spec | Howto Guide
- A built-in function that performs Euclidean division with its parameters and returns the integer remainder
N
null
π Language Spec
- A primitive type whose only value, the null
value, is represented with the keyword
null
. Comparable with itself and any other type, the comparison with anull
value always being equal and the comparison with any other type always being unequal
number
π Language Spec | Tour
O
Optional field constraint
π Tour | Howto Guide
- A field constraint that restricts the fieldβs value if the field is present, whilst also permitting the fieldβs absence
or()
π Language Spec | Howto Guide
- A built-in function that accepts a list and produces a disjunction
Q
quo()
π Language Spec | Howto Guide
- A built-in function that performs truncated division with its parameters and returns the integer quotient
R
βRawβ strings
π Language Spec | Tour
- A
string
literal enclosed with an equal number of hashes on both sides, allowing escape sequences to appear inside the text verbatim, without their usual escaping taking effect
rem()
π Language Spec | Howto Guide
- A built-in function that performs truncated division with its parameters and returns the integer remainder
Required field constraint
π Tour | Howto Guide
- A field constraint that restricts the fieldβs value whilst also requiring the field to be present
S
string
π Language Spec | Tour
- A primitive type representing the set of UTF-8 strings
- see also: Raw strings
Struct
π Language Spec | Tour
- A composite type representing a set of elements (called fields) each of which has a name (called a label) and a value
U
Unification
π Language Spec