1610件ヒット
[1601-1610件を表示]
(0.059秒)
別のキーワード
ライブラリ
- ビルトイン (1610)
キーワード
- <=> (12)
- [] (36)
- all? (21)
- any? (30)
- assoc (12)
- at (12)
- bsearch (24)
-
bsearch
_ index (20) - collect (24)
- collect! (24)
- combination (24)
- compact (12)
- compact! (12)
- count (36)
- cycle (24)
- delete (24)
-
delete
_ at (12) -
delete
_ if (24) - dig (10)
-
drop
_ while (24) - each (24)
-
each
_ index (24) - fetch (36)
-
fetch
_ values (2) - fill (72)
- filter (14)
- filter! (14)
-
find
_ index (36) - first (24)
- flatten (12)
- flatten! (12)
- index (36)
-
keep
_ if (24) - last (24)
- map (24)
- map! (24)
- max (36)
- min (36)
- minmax (12)
- none? (21)
- one? (21)
- pack (21)
- permutation (24)
- pop (24)
- product (24)
- rassoc (12)
- reject (24)
- reject! (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
reverse
_ each (24) - rindex (36)
- sample (48)
- select (24)
- select! (24)
- shift (24)
- slice (36)
- slice! (36)
- sort (24)
- sort! (24)
-
sort
_ by! (24) - sum (18)
-
take
_ while (24) -
to
_ h (14) - uniq (24)
- uniq! (24)
- zip (24)
検索結果
-
Array
# cycle(n=nil) -> Enumerator (9015.0) -
配列の全要素を n 回(nilの場合は無限に)繰り返しブロックを呼びだします。
...黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
a = ["a", "b", "c"]
a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
//}... -
Array
# minmax -> [object , object] (9015.0) -
自身の各要素のうち最小の要素と最大の要素を 要素とするサイズ 2 の配列を返します。
...式では、要素同士の比較をブロックを用いて行います。
//emlist[例][ruby]{
a = %w(albatross dog horse)
a.minmax #=> ["albatross", "horse"]
a.minmax{|a,b| a.length <=> b.length } #=> ["dog", "albatross"]
[].minmax # => [nil, nil]
//}
@see Enum...