Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

array_type

form an array type from a type

Synopsis

array_type(t: type) -> type

Description

The array_type function returns the array type whose elements have type t, e.g., array_type(<string>) is <[string]>.

Examples


Form an array type

# spq
values array_type(this)
# input
<string>
<{x:int64}>
# expected output
<[string]>
<[{x:int64}]>