A

and()

🔗 Language Spec | Howto Guide

B

bool

🔗 Language Spec

  • A primitive type representing the set of Boolean truth values denoted by the keywords true and false

Built-in functions

🔗 Language Spec

bytes

🔗 Language Spec | Tour

  • A primitive type representing a possibly empty sequence of arbitrary bytes
C

close()

🔗 Language Spec | Howto Guide

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

🔗 Tour #1 | Tour #2

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

float

🔗 Language Spec | Tour

  • A primitive type representing the set of all decimal floating-point numbers
I

int

🔗 Language Spec | Tour

  • A primitive type representing the set of all integer 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

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 a null value always being equal and the comparison with any other type always being unequal

number

🔗 Language Spec | Tour

  • A generic primitive type representing the set of all members of both int and float types
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

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

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
T

Type

🔗 Tour

U

Unification

🔗 Language Spec

Y

YAML

🔗 yaml.org

  • “YAML is a human-friendly data serialization language for all programming languages” – yaml.org
  • A data format understood by the cue CLI, which can both parse and emit YAML as input and output