2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-12-03 17:52:40 +00:00
bazel-skylib/docs/collections_doc.md
Alex Eagle eabe5f7fe9
Run regenerate_docs.sh (#297)
Co-authored-by: Alexandre Rostovtsev <arostovtsev@google.com> (merge conflict fixes)
2021-09-24 11:24:43 -04:00

1.5 KiB
Executable file

collections.after_each

collections.after_each(separator, iterable)

Inserts separator after each item in iterable.

PARAMETERS

Name Description Default Value
separator The value to insert after each item in iterable. none
iterable The list into which to intersperse the separator. none

collections.before_each

collections.before_each(separator, iterable)

Inserts separator before each item in iterable.

PARAMETERS

Name Description Default Value
separator The value to insert before each item in iterable. none
iterable The list into which to intersperse the separator. none

collections.uniq

collections.uniq(iterable)

Returns a list of unique elements in iterable.

Requires all the elements to be hashable.

PARAMETERS

Name Description Default Value
iterable An iterable to filter. none