全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Iterator?

Definition 15.5 University Computer Science — Year 1 · 第 15 章 — Linked Structures: Lists, Stacks and Queues

An iterator over a structure is a value that designates a position in it, with an operation that tells whether elements remain and an operation that returns the next element and advances. A loop written with an iterator works on every structure that provides one.

在原文中阅读 →