mirror of
https://github.com/bazelbuild/bazel-skylib
synced 2024-11-28 08:43:51 +00:00
Update docs.
This commit is contained in:
parent
ee14cbd3d9
commit
faeeaa2a7a
|
@ -81,7 +81,7 @@ A new list with all unique elements from `iterable`.
|
||||||
collections.flatten(<a href="#collections.flatten-iterable">iterable</a>)
|
collections.flatten(<a href="#collections.flatten-iterable">iterable</a>)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
Flattens an iterable to the sum of those iterables.
|
Flattens an iterable to the sum of the elements with a starting value of [].
|
||||||
|
|
||||||
This behaves like collapsing the first dimension of the iterable.
|
This behaves like collapsing the first dimension of the iterable.
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ def _uniq(iterable):
|
||||||
return list(unique_elements.keys())
|
return list(unique_elements.keys())
|
||||||
|
|
||||||
def _flatten(iterable):
|
def _flatten(iterable):
|
||||||
"""Flattens an iterable to the sum of those iterables.
|
"""Flattens an iterable to the sum of the elements with a starting value of [].
|
||||||
|
|
||||||
This behaves like collapsing the first dimension of the iterable.
|
This behaves like collapsing the first dimension of the iterable.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue