page_title | description |
---|---|
compact - Functions - Configuration Language |
The compact function removes empty string elements from a list. |
compact
takes a list of strings and returns a new list with any empty string
elements removed.
> compact(["a", "", "b", "c"])
[
"a",
"b",
"c",
]