Add support for empty strings in target elements and compact func.

Signed-off-by: Anthony Poschen <zanven42@gmail.com>
pull/428/head
Anthony Poschen 4 years ago
parent d2bf42f8b4
commit abfb2c064d

@ -526,6 +526,9 @@ func removeDupes(s []string) []string {
if _, ok := seen[v]; ok {
continue
}
if v == "" {
continue
}
seen[v] = struct{}{}
s[i] = v
i++

@ -31,6 +31,7 @@ var (
"csvdecode": stdlib.CSVDecodeFunc,
"coalesce": stdlib.CoalesceFunc,
"coalescelist": stdlib.CoalesceListFunc,
"compact": stdlib.CompactFunc,
"concat": stdlib.ConcatFunc,
"contains": stdlib.ContainsFunc,
"distinct": stdlib.DistinctFunc,

Loading…
Cancel
Save