☰
Debian Codegraph
@
0.22.0+ds-1
0.20.0+ds-3.3
/
/
doc
/
_includes
/
examples
/
utils.libsonnet
☽
☼
doc/_includes/examples/utils.libsonnet
code
plain
raw
Apache-2.0
2015-2023, Google Inc.
debian/copyright
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
}