# What is the best way to convert a set to an Array?

**URL:** <https://discourse.julialang.org/t/what-is-the-best-way-to-convert-a-set-to-an-array/56419>\
**Category:** General Usage\
**Created:** [March 3, 2021, 4:24pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-convert-a-set-to-an-array/56419 "2021-03-03T16:24:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BridgeBot](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bridgebot/32/21491_2.png) [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Post date:** [March 3, 2021, 4:24pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-convert-a-set-to-an-array/56419/1 "2021-03-03T16:24:57Z")

</div>

What is the best way to convert a set to an Array?

Note that the original poster on Slack cannot see your response here on Discourse. Consider _transcribing the appropriate answer back to Slack_, or pinging the poster here on Discourse so they can _follow this thread_.  
[(Original message :slack:)](https://julialang.slack.com/archives/C6A044SQH/p1614788683275200?thread_ts=1614788683.275200&cid=C6A044SQH) [(More Info)](https://github.com/JuliaCommunity/SlackBridge)

---

<div class="post-metadata">

**Author:** ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)\
**Post date:** [March 3, 2021, 7:55pm UTC](https://discourse.julialang.org/t/what-is-the-best-way-to-convert-a-set-to-an-array/56419/2 "2021-03-03T19:55:38Z")

</div>

`collect(set)` ?
