目次

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