该清单展示了内部迭代器(也称为push迭代器,因为它将每个元素依次推到代码块中)。
This listing illustrates an internal iterator (also known as a push iterator because it pushes each element in turn to the code block).
以前的那些例子恰好在必须按顺序在项上进行迭代之前停止执行,并且有一个好的理由:它们使用的模板系统无法在模板定义内部进行这种迭代。
The previous examples stop right before they have to iterate over the items in the order, and for good reason: the templating systems they use can't do that iteration within a template definition.
在迭代1结束时,您可能会给内部涉众,比如一个高级执行官,做一个演示。
At the end of iteration 1, you might demonstrate to an insider stakeholder, such as an executive.
阶段由若干迭代组成——依照基本计划和评价标准的不同序列的活动会致使工件的发布(内部或外部的)。
Phases consist of multiple iterations — distinct sequences of activities with a base-lined plan and valuation criteria resulting in a release of artifacts (internal or external).
在为我们的知识产权获取法律许可之前,提供给内部涉众的第二次迭代演示之前还有一次额外的演示,即在为我们的知识产权获取法律许可之前。
Once again, this second iteration demo being offered to insider stakeholders buys us an additional iteration prior to needing to obtain legal clearance for our intellectual property.
脚本的底部打开books标记,然后在每个图书中迭代,创建book 标记和所有的内部title、author 和publisher标记。
The bottom of the script opens the books tag, then iterates through each book, creating the book tag and all the internal title, author, and publisher tags.
如果团队提前完成了工作,它始终可以重新返回发行版计划安排,并挑选额外一些可以在迭代开发内部完成的工作项。
If the team finishes work ahead of schedule, it can always go back to the release backlog and pick some additional work items that can be completed inside the iteration.
您可以向执行官或者其他内部人员同时进行演示,或者每次迭代末尾时为终端用户进行演示,或者对演示进行策划用户组会议,或者以其它方式执行。
You could instead do a demonstration to executives and other insiders at the same time, or demo to end users every other iteration, or orchestrate user group meetings around demos, or whatever.
因此,外部聚合将迭代所有的重复元素,而内部聚合将构建从两个服务调用聚合的响应。
So the outer aggregation iterates through all of the repeating elements, while the inner aggregation builds a response aggregated from the two service invocations.
内部foreach循环迭代哈希条目,删除值最后的后缀空格字符。
The inner foreach loop iterates over the hash entries and strips trailing space characters from the values.
然后,一个内部repeat 在每个item内的info元素上迭代。
Then, an inner repeat iterates over the info elements within each item.
但是向后移动要复杂些,因为迭代器内部执行的是深度优先算法,预先排好了Rope遍历的顺序,需要访问每个叶节点。
But moving backward is more complicated, because internally the iterator performs a depth-first, preorder traversal of the Rope, visiting each of its leaf nodes.
第三个迭代则定义模块内部的伪代码。
The third iteration might define the intra-module pseudo-code.
迭代器模式:提供一种方法顺序访问一个聚合对象中的各个元素,而又不暴露其内部的表示。
The Iterator Pattern:provides a way to access the elements of an aggregate object sequentially without exposing its underying representation.
迭代器模式:提供一种方法顺序访问一个聚合对象中的各个元素,而又不暴露其内部的表示。
The Iterator Pattern:provides a way to access the elements of an aggregate object sequentially without exposing its underying representation.
应用推荐