Skip to content

iter::take

take(items, count: Integer)

ParameterTypeDescription
itemsIterableAll items
countIntegerThe amount of items to take from the left

Returns

(Generator) A new list with the specified amount of items.