612件ヒット
[601-612件を表示]
(0.096秒)
ライブラリ
- ビルトイン (612)
キーワード
- bsearch (12)
-
bsearch
_ index (10) - collect (12)
- collect! (12)
- combination (12)
- count (36)
- cycle (12)
-
delete
_ if (12) -
drop
_ while (12) - dup (12)
- each (12)
-
each
_ index (12) -
fetch
_ values (2) - filter (7)
- filter! (7)
-
find
_ index (12) - include? (12)
- index (12)
-
keep
_ if (12) - map (12)
- map! (12)
- pack (21)
- permutation (24)
- product (24)
- push (12)
- reject (12)
- reject! (12)
-
repeated
_ combination (12) -
repeated
_ permutation (24) -
reverse
_ each (12) - rindex (12)
- select (12)
- select! (12)
- shuffle (24)
- shuffle! (24)
-
sort
_ by! (12) - sum (18)
-
take
_ while (12) - union (7)
- uniq (24)
- uniq! (24)
- unshift (12)
-
values
_ at (12)
検索結果
-
Array
# take _ while -> Enumerator (102.0) -
配列の要素を順に偽になるまでブロックで評価します。 最初に偽になった要素の手前の要素までを配列として返します。 このメソッドは自身を破壊的に変更しません。
...の要素までを配列として返します。
このメソッドは自身を破壊的に変更しません。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.take_while {|i| i < 3 } # => [1, 2]
//}
ブロックを省略した場合は Enumerator を返します。
@see Enumerable#take_while...