るりまサーチ

最速Rubyリファレンスマニュアル検索!
19件ヒット [1-19件を表示] (0.026秒)

別のキーワード

  1. arithmeticsequence first
  2. arithmeticsequence each
  3. _builtin arithmeticsequence
  4. arithmeticsequence hash

ライブラリ

検索結果

Enumerator::ArithmeticSequence#last -> Numeric | nil (21102.0)

等差数列の最後の要素、もしくは最後の n 要素を返します。

等差数列の最後の要素、もしくは最後の n 要素を返します。

@param n 取得する要素数。

Enumerator::ArithmeticSequence#last(n) -> [Numeric] (21102.0)

等差数列の最後の要素、もしくは最後の n 要素を返します。

等差数列の最後の要素、もしくは最後の n 要素を返します。

@param n 取得する要素数。

NEWS for Ruby 3.0.0 (12.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...* Array#slice / Array#[]
* Array#take
* Array#take_while
* Array#uniq
* Array#*
* Can be sliced with Enumerator::ArithmeticSequence

//emlist[][ruby]{
dirty_data = ['--', 'data1', '--', 'data2', '--', 'data3']
dirty_data[(1..).step(2)] # take each second element
# => ["da...
...verrides Numeric#zero? for optimization. 16961
* Enumerable#grep and Enumerable#grep_v when passed a Regexp and no block no longer modify Regexp.last_match. 17030
* Requiring 'open-uri' no longer redefines `Kernel#open`. Call `URI.open` directly or `use URI#open` instead. 15893
* SortedSet ha...