Skip to content

iter::prepend

prepend(items, item)

ParameterTypeDescription
itemsIterable
item*

Returns

(Generator) A new list with the given item prepended to the given Iterable.