take

 
// times  type : Int
// return type : Iterator
Iterator::take : method(times);

Description

times回イテレートするイテレータを返します。

Example

基本的な使い方

C++

Xtal

(0..9).take(5){
    it.p;
}

Output

0
1
2
3
4
reference/iterator/take.txt · 最終更新: 2011/07/16 10:37 by sukai
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0