2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-28 08:43:51 +00:00

Update docs.

This commit is contained in:
Sami Kalliomäki 2022-11-16 10:34:38 +00:00
parent ee14cbd3d9
commit faeeaa2a7a
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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.