るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< 1 2 > >>

Enumerator::ArithmeticSequence#end -> Numeric | nil (21107.0)

末項(終端)を返します。

...末項(終端)を返します。

@see Enumerator::ArithmeticSequence#begin...

Enumerator::ArithmeticSequence#exclude_end? -> bool (9101.0)

末項(終端)を含まないとき真を返します。

末項(終端)を含まないとき真を返します。

Enumerator::ArithmeticSequence#==(other) -> bool (3040.0)

Enumerable::ArithmeticSequence として等しいか判定します。

...Enumerable::ArithmeticSequence として等しいか判定します。

other が Enumerable::ArithmeticSequence
begin, end, step, exclude_end? が等しい時に
true を返します。

@param other 自身と比較する Enumerable::ArithmeticSequence...

Enumerator::ArithmeticSequence#hash -> Integer (3018.0)

自身のハッシュ値を返します。

...自身のハッシュ値を返します。

begin, end, step, exclude_end? が等しい Enumerable::ArithmeticSequence
同じハッシュ値を返します。...

Enumerator::ArithmeticSequence#begin -> Numeric (3012.0)

初項 (始端) を返します。

...初項 (始端) を返します。

@see Enumerator::ArithmeticSequence#end...

絞り込み条件を変える

Enumerator::ArithmeticSequence#begin -> Numeric | nil (3012.0)

初項 (始端) を返します。

...初項 (始端) を返します。

@see Enumerator::ArithmeticSequence#end...

Numeric#step(by: 1, to: Float::INFINITY) -> Enumerator::ArithmeticSequence (115.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by:, to: -Float::INFINITY) -> Enumerator::ArithmeticSequence (115.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(limit, step = 1) -> Enumerator::ArithmeticSequence (115.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

NEWS for Ruby 3.0.0 (54.0)

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

...> a=>1}, {}]
//}

* Arguments forwarding (`...`) now supports leading arguments.
16378

//emlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end

//}

* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern matching is redesigned. [EXPERIMENTAL]...
..."f", 3]
in [*pre, String => x, String => y, *post]
p pre #=> ["a", 1]
p x #=> "b"
p y #=> "c"
p post #=> [2, "d", "e", "f", 3]
end

//}

* Endless method definition is added. [EXPERIMENTAL]
16746

//emlist{
def square(x) = x * x
//}

* Interpolated String literals are no long...
...* 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...

絞り込み条件を変える

Numeric#step(by: 1, to: Float::INFINITY) -> Enumerator (15.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by: 1, to: Float::INFINITY) {|n| ... } -> self (15.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by:, to: -Float::INFINITY) -> Enumerator (15.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(by:, to: -Float::INFINITY) {|n| ... } -> self (15.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

Numeric#step(limit, step = 1) -> Enumerator (15.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...

絞り込み条件を変える

Numeric#step(limit, step = 1) {|n| ... } -> self (15.0)

self からはじめ step を足しながら limit を越える 前までブロックを繰り返します。step は負の数も指定できます。また、limit や step には Float なども 指定できます。

...Enumerator を返します。
@return 特に limit (または to) と step の両方が Numeric または nil の時は
Enumerator::ArithmeticSequence を返します。

@raise ArgumentError step に 0 を指定した場合に発生します。


//emlist[例][ruby]{
2.step(5){|n| p n}
2
3...
...では誤差が
生じて意図した回数ループしないことがある。step はこの誤差を考慮し
て実装されている。

//emlist[例][ruby]{
i = 1.1
while i <= 1.5
p i
i += 0.1
end

# => 1.1
# 1.2
# 1.3
# 1.4 <- 1.5 が表示されない
//}

@see Integer#downto...
<< 1 2 > >>