Replies: 3 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
The answer is something like this:
This doesn't actually work — Cozo complains about about an unbound variable in I just realised there is no real documentation on how to use functions. Anyone know why this doesn't work? |
Beta Was this translation helpful? Give feedback.
-
I think for that feature, you have to define a custom named rule, if supported by your env. E.g. the Node-example implements a custom I just started to learn CozoScript and its design & and approach to querying, which is very new for me and super exciting. AFAIK, the aggregations only apply on a row-level for results. I guess the |
Beta Was this translation helpful? Give feedback.
-
If I call
sum(...)
on a list of numbers, I receive the error× cannot compute 'sum': encountered value [1, 1, 1]
.add
giveshelp: addition requires numbers
. Is there a function or operator I'm overlooking?Beta Was this translation helpful? Give feedback.
All reactions