るりまサーチ

最速Rubyリファレンスマニュアル検索!
9件ヒット [1-9件を表示] (0.074秒)
トップページ > クエリ:t[x] > クエリ:Ruby[x] > 種類:インスタンスメソッド[x] > クエリ:self[x] > クラス:Set[x] > ライブラリ:set[x] > クエリ:to_a[x]

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. tracepoint self
  4. _builtin self
  5. codeobject document_self

検索結果

Set#to_a -> Array (24233.0)

self を配列に変換します。要素の順序は不定です。

...self を配列に変換します。要素の順序は不定です。

//emlist[][ruby]{
require 'set'
set
= Set['hello', 'world']
p set.to_a # => ["hello", "world"]
//}...