-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array reduction #532
Comments
I even tried this:
This actually works, but yields a weird answer of 138. |
Yeah, there is nothing builtin. Easiest might be to create your own C# function or you can try to define a Scriban function like this:
|
@xoofx Ah, great thanks. I used that as base and came up with a more generic reduce function:
Or with custom function:
|
An official |
Hi,
I'm looking for a way to reduce arrays, e.g. I was hoping for something like this:
Or in the case of summing, just
But I can't find an obvious way. Is array reduction missing?
The text was updated successfully, but these errors were encountered: