Closed felixcremer closed 7 months ago
Maybe this is cleaner?
arr[Variable=Where(x -> any(occursin(x), ("moisture", "temp")))]
I think it will be hard to get shorter than that.
But we could something like a Matches
selector that did that, like
arr[Variable=Matches(contains, ("moisture, "temp"))
I think my first suggestion is probably "good enough"
I am wondering whether we could combine multiple functions in the Where selector by selecting all values where one of them is true. My use case is to use functions like contains for which I can constructing a function which returns a boolean by calling them with one argument.