Members
add
TemplateDict TemplateDict.add(key, value)
Parameters
Parameter | Description |
---|---|
key
|
required A String key |
value
|
required A String value |
add_joined
TemplateDict TemplateDict.add_joined(key, values, *, join_with, map_each, uniquify=False)
Parameters
Parameter | Description |
---|---|
key
|
required A String key |
values
|
depset ;
requiredThe depset whose items will be joined. |
join_with
|
required A delimiter string used to join together the strings obtained from applying map_each , in the same manner as string.join() .
|
map_each
|
callable ;
requiredA Starlark function accepting a single argument and returning a String. This function is applied to each item of the depset specified in the values parameter
|
uniquify
|
default = False If true, duplicate strings derived from values will be omitted. Only the first occurrence of each string will remain. Usually this feature is not needed because depsets already omit duplicates, but it can be useful if map_each emits the same string for multiple items.
|