Debian Codegraph @

doc/_includes/examples/utils.libsonnet

raw
1 {
2 equal_parts(size, ingredients)::
3 // Define a function-scoped variable.
4 local qty = size / std.length(ingredients);
5 // Return an array.
6 [
7 { kind: i, qty: qty }
8 for i in ingredients
9 ],
10 }