# Get all Permutations of Array?

**URL:** https://discourse.julialang.org/t/get-all-permutations-of-array/48578
**Category:** New to Julia
**Created:** [October 18, 2020, 9:55am UTC](https://discourse.julialang.org/t/get-all-permutations-of-array/48578 "2020-10-18T09:55:42Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Ahmed\_Salih](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmed_salih/32/206579_2.png) [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)
#### Post date: [October 18, 2020, 9:57am UTC](https://discourse.julialang.org/t/get-all-permutations-of-array/48578/2 "2020-10-18T09:57:23Z")

</div>

> [@Ahmed\_Salih](#):
>
> `permutations`

> [@Getting all possible combination of vector with all possible order](https://discourse.julialang.org/t/getting-all-possible-combination-of-vector-with-all-possible-order/879):
>
> I know that there is combination function whthin package ‘Combinatorics’ which gives me all possible combination without regarding order of elements x = combinations([1,2,3], 3) # which gives this collect(x) =\> [1,2,3] # but I couldn't find function for getting this. =\> [[1,2,3], [2,1,3], [3,1,2], [3,2,1]] I looked up “Combinatorics” and “Iterators” Packages, but couldn’t find function I need. thanks for your time.

Old thread stating similar code which does not work either anymore.

Kind regards

---

_[View the full topic](https://discourse.julialang.org/t/get-all-permutations-of-array/48578)._
