method iter.skip
A sequence without the first n elements (a negative n counts as 0).
Example:
fn main() io {
print("{[1, 2, 3, 4].iter().skip(2).collect()}")
}Вывод
[3, 4]
pub(api) move fn skip<I>(n: I) -> iter<T>Сложность. O(1) to build; the first pull discards `n` elements.
С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
n | I |
Возвращает
iter<T>
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/iter.oxl:219