There are several functions that don’t take the collection they operate on last, which means they can’t be used in pipelines. For example:
-
delimit COLLECTION DELIMIT LAST
should bedelimit DELIMIT LAST COLLECTION
to enableslice "a" "b" "c" | delimit ", " " "
-
split STRING DELIM
should besplit DELIM STRING
to enable"a b c" | split " "
-
hasPrefix STRING PREFIX
should behasPrefix PREFIX STRING
to enable"abc" | hasPrefix "a"
Here are a few others I found with a cursory search:
- isset
- sort
- where
It would be useful to add “func2” variants, like “delimit2”, so we can use them with pipelines if desired. Or just change the existing funcs to work that way; whichever works.