Skylib module containing functions that operate on collections.

Macros and Functions

collections.after_each

Inserts separator after each item in iterable.

separator

The value to insert after each item in iterable.

iterable

The list into which to intersperse the separator.


collections.before_each

Inserts separator before each item in iterable.

separator

The value to insert before each item in iterable.

iterable

The list into which to intersperse the separator.


collections.uniq

Returns a list of unique elements in iterable.

Requires all the elements to be hashable.

iterable

An iterable to filter.