collections.after_each

Inserts separator after each item in iterable.

PARAMETERS

NameDescriptionDefault Value
separatorThe value to insert after each item in iterable.none
iterableThe list into which to intersperse the separator.none

collections.before_each

Inserts separator before each item in iterable.

PARAMETERS

NameDescriptionDefault Value
separatorThe value to insert before each item in iterable.none
iterableThe list into which to intersperse the separator.none

collections.uniq

Returns a list of unique elements in iterable.

Requires all the elements to be hashable.

PARAMETERS

NameDescriptionDefault Value
iterableAn iterable to filter.none