1件ヒット
[1-1件を表示]
(0.171秒)
ライブラリ
- ビルトイン (1)
モジュール
- Enumerable (1)
検索結果
-
Enumerable
# drop(n) -> Array (72697.0) -
Enumerable オブジェクトの先頭の n 要素を捨てて、 残りの要素を配列として返します。
Enumerable オブジェクトの先頭の n 要素を捨てて、
残りの要素を配列として返します。
@param n 捨てる要素数。
//emlist[例][ruby]{
e = [1, 2, 3, 4, 5, 0].each
e.drop(3) # => [4, 5, 0]
//}
@see Array#drop