るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.031秒)
トップページ > バージョン:2.5.0[x] > クエリ:y[x] > クエリ:Array[x] > ライブラリ:set[x]

別のキーワード

  1. psych psych_y
  2. psych y
  3. kernel y
  4. kernel psych_y
  5. y kernel

クラス

検索結果

Set#to_a -> Array (610.0)

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

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

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