るりまサーチ

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

別のキーワード

  1. _builtin detect
  2. enumerable detect
  3. detect
  4. detect proc
  5. detect _builtin

ライブラリ

検索結果

Enumerable#detect(ifnone = nil) -> Enumerator (18110.0)

要素に対してブロックを評価した値が真になった最初の要素を返します。

...が指定されているときは ifnone を call した結果を返します。

ブロックを省略した場合は Enumerator を返します。

@
param ifnone call メソッドを持つオブジェクト (例えば Proc) を指定します。

//emlist[例][ruby]{
# 最初の 3 の倍数を...

Enumerable#detect(ifnone = nil) {|item| ... } -> object (18110.0)

要素に対してブロックを評価した値が真になった最初の要素を返します。

...が指定されているときは ifnone を call した結果を返します。

ブロックを省略した場合は Enumerator を返します。

@
param ifnone call メソッドを持つオブジェクト (例えば Proc) を指定します。

//emlist[例][ruby]{
# 最初の 3 の倍数を...

Enumerable#find(ifnone = nil) -> Enumerator (3010.0)

要素に対してブロックを評価した値が真になった最初の要素を返します。

...が指定されているときは ifnone を call した結果を返します。

ブロックを省略した場合は Enumerator を返します。

@
param ifnone call メソッドを持つオブジェクト (例えば Proc) を指定します。

//emlist[例][ruby]{
# 最初の 3 の倍数を...

Enumerable#find(ifnone = nil) {|item| ... } -> object (3010.0)

要素に対してブロックを評価した値が真になった最初の要素を返します。

...が指定されているときは ifnone を call した結果を返します。

ブロックを省略した場合は Enumerator を返します。

@
param ifnone call メソッドを持つオブジェクト (例えば Proc) を指定します。

//emlist[例][ruby]{
# 最初の 3 の倍数を...