Skip to main content

Behavior

  • [[a, b], [c]] becomes [a, b, c].
  • depth is how many levels are spliced; the default is 1.
  • Elements that aren’t lists are kept as they are.

When to use it

  • After a map whose items each return a list, such as one search per query, before deduping, sorting or ranking the results.

Input

integer
Levels to flatten; default 1
any[]
required
The list, usually a template like {{E1.results}}

Output

any[]
required