See collect. But in julia, it's often the case that you don't need to do
things that way. For example,
for (key,value) in mydict
# do something with key and value
end
might be faster because it does not end up allocating any memory.
--Tim
On Thursday, April 30, 2015 02:05:37 PM Alexandros Fakos wrote:
> Thanks a lot. countmap returns a dictionary but I would prefer an array.
> How can I do that?
>
> Thank you
>
> On Thursday, April 30, 2015 at 4:41:43 PM UTC-4, Johan Sigfrids wrote:
> > countmap in the StatsBase.jl package does this.
> >
> > On Thursday, April 30, 2015 at 11:11:37 PM UTC+3, Alexandros Fakos wrote:
> >> Hi,
> >>
> >> Is there a way to get a table of frequencies of the unique values in an
> >> array in Julia?
> >> Something like matlab's tabulate
> >>
> >> Thanks a lot,
> >> Alex