Replies: 1 comment 1 reply
-
@TristonianJones Sorry to ping you directly, but perhaps you might have a quick answer? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to define a type which is a predicate?
For example, we have defined the function
sum(...)
which might be used like this:sum(invoice.items.total)
. In this case,invoice
would be defined as a variable of some struct type in the expression context. However, we'd like to add a second parameter, a predicate, which would be used to indicate a filter expression. For example,sum(invoice.items.total, x => !x.isDeleted)
. I understand that this syntax isn't valid CEL, but could there be another way to represent a predicate somehow?Beta Was this translation helpful? Give feedback.
All reactions