るりまサーチ

最速Rubyリファレンスマニュアル検索!
980件ヒット [1-100件を表示] (0.123秒)
トップページ > クエリ:a[x] > クエリ:count[x]

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

ライブラリ

モジュール

検索結果

<< 1 2 3 ... > >>

Array#count -> Integer (21127.0)

レシーバの要素数を返します。

...ブロックを評価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
a
ry = [1, 2, 4, 2.0]
a
ry.count # => 4
a
ry.count(2) # => 2
a
ry.count{|x|x%2==0} # => 3
//}

@see Enumerable#count...

Array#count {|obj| ... } -> Integer (21127.0)

レシーバの要素数を返します。

...ブロックを評価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
a
ry = [1, 2, 4, 2.0]
a
ry.count # => 4
a
ry.count(2) # => 2
a
ry.count{|x|x%2==0} # => 3
//}

@see Enumerable#count...

Array#count(item) -> Integer (21127.0)

レシーバの要素数を返します。

...ブロックを評価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
a
ry = [1, 2, 4, 2.0]
a
ry.count # => 4
a
ry.count(2) # => 2
a
ry.count{|x|x%2==0} # => 3
//}

@see Enumerable#count...

Enumerable#count -> Integer (21127.0)

レシーバの要素数を返します。

...価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
enum = [1, 2, 4, 2].each
enum.count # => 4
enum.count(2) # => 2
enum.count{|x|x%2==0} # => 3
//}

@see Array#count...

Enumerable#count {|obj| ... } -> Integer (21127.0)

レシーバの要素数を返します。

...価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
enum = [1, 2, 4, 2].each
enum.count # => 4
enum.count(2) # => 2
enum.count{|x|x%2==0} # => 3
//}

@see Array#count...

絞り込み条件を変える

Enumerable#count(item) -> Integer (21127.0)

レシーバの要素数を返します。

...価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
enum = [1, 2, 4, 2].each
enum.count # => 4
enum.count(2) # => 2
enum.count{|x|x%2==0} # => 3
//}

@see Array#count...

Gem::StreamUI::SilentProgressReporter#count -> nil (21101.0)

何もしません。

何もしません。

Gem::StreamUI::SimpleProgressReporter#count -> Integer (21101.0)

Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。

...Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。...

Gem::StreamUI::VerboseProgressReporter#count -> Integer (21101.0)

Gem::StreamUI::VerboseProgressReporter#updated が呼び出された回数を返します。

...Gem::StreamUI::VerboseProgressReporter#updated が呼び出された回数を返します。...
<< 1 2 3 ... > >>