るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p
  5. dsa p

ライブラリ

キーワード

検索結果

Set#map! {|o| ...} -> self (6215.0)

集合の各要素についてブロックを評価し、その結果で元の集合を置き換えます。

...集合の各要素についてブロックを評価し、その結果で元の集合を置き換えます。

//emlist[][ruby]{
require 'set'
set
= Set['hello', 'world']
set
.map! {|str| str.capitalize}
p
set # => #<Set: {"Hello", "World"}>
//}

@see Enumerable#collect...
...集合の各要素についてブロックを評価し、その結果で元の集合を置き換えます。

//emlist[][ruby]{
set
= Set['hello', 'world']
set
.map! {|str| str.capitalize}
p
set # => #<Set: {"Hello", "World"}>
//}

@see Enumerable#collect...

Set#collect! {|o| ...} -> self (15.0)

集合の各要素についてブロックを評価し、その結果で元の集合を置き換えます。

...集合の各要素についてブロックを評価し、その結果で元の集合を置き換えます。

//emlist[][ruby]{
require 'set'
set
= Set['hello', 'world']
set
.map! {|str| str.capitalize}
p
set # => #<Set: {"Hello", "World"}>
//}

@see Enumerable#collect...
...集合の各要素についてブロックを評価し、その結果で元の集合を置き換えます。

//emlist[][ruby]{
set
= Set['hello', 'world']
set
.map! {|str| str.capitalize}
p
set # => #<Set: {"Hello", "World"}>
//}

@see Enumerable#collect...