Should be obvious, but if your set doesn't contain integers, you would use a = Set(['a','c','d','c']) b = collect(a)
In either case, in Julia, it's usually better not to change the type of "a" from Set (or IntSet) to Array. Another option is to do a = [1,2,1,3] a = unique(a) which actually uses a Set in "unique" function the to find unique elements, but then returns an array. Cheers, Kevin On Wed, Mar 11, 2015 at 9:12 AM, René Donner <li...@donner.at> wrote: > Hi, > > try: > > a = IntSet([1,2,1,3]) > collect(a) > > that gives you a 3-element Array{Int64,1}. This also work with ranges, > like collect(1:3) > > Cheers, > > Rene > > > > Am 11.03.2015 um 17:03 schrieb Ali Rezaee <arv.ka...@gmail.com>: > > > In Python I would normally to something like this: > > > > a = set([1,2,1,3]) > > a = list(a) > > > > What is the equivalent way to do this in Julia? > > > > > > Thanks a lot in advance for your help > >