Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 366 Bytes

File metadata and controls

21 lines (17 loc) · 366 Bytes
layout page_title description
docs
compact - Functions - Configuration Language
The compact function removes empty string elements from a list.

compact Function

compact takes a list of strings and returns a new list with any empty string elements removed.

Examples

> compact(["a", "", "b", "c"])
[
  "a",
  "b",
  "c",
]