1610件ヒット
[1601-1610件を表示]
(0.038秒)
別のキーワード
ライブラリ
- ビルトイン (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
# shift(n) -> Array (9.0) -
配列の先頭の要素を取り除いてそれを返します。 引数を指定した場合はその個数だけ取り除き、それを配列で返します。
...@raise ArgumentError 引数に負の数を指定した場合に発生します。
//emlist[例][ruby]{
a = [0, 1, 2, 3, 4]
p a.shift #=> 0
p a #=> [1, 2, 3, 4]
p [].shift #=> nil
p [].shift(1) #=> []
//}
@see Array#push, Array#pop, Array#unshift...