るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.200秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:a[x] > クエリ:to[x] > バージョン:3.0[x] > クラス:Set[x]

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. bigdecimal to_r
  5. fileutils cp_r

ライブラリ

検索結果

Set#to_a -> Array (37246.0)

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

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

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