るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.109秒)
トップページ > バージョン:2.3.0[x] > クエリ:l[x] > クエリ:e=[x] > クエリ:drop[x]

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. open3 capture2e
  5. matrix rank_e

ライブラリ

モジュール

検索結果

Enumerable#drop(n) -> Array (63358.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