--
You received this message because you are subscribed to the Google Groups "Jsonnet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsonnet+unsubscribe@googlegroups.com.
To post to this group, send email to jso...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsonnet/5dca377e-f209-4979-951e-6c8a6f952e67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I didn't know that's what the foldl function was for. The foldl function can be used to iterate an array with seemingly mutable state that changes as the array is iterated. It's a for loop!!!
Thank you so much Igor.
You didn't just give me a snippet that I can copy-and-paste, you taught me something about functional programming!
BTW, is this the right place for questions like "How did I do x in Jsonnet?"?