Le lundi 10 mars 2014 02:07:40 UTC+1, andrew cooke a écrit :
>
>
> ok, i think your problem is that map(reverse, dict) is returning an array.
>
> if you make that a Set{UTF8String} then everything is fast.
>
> cheers,
> andrew
>
Indeed, that's it. Thanks!
julia> @time result = sort([intersect(dict, Set{UTF8String}(map(reverse,
dict)))...], by = length)
...
elapsed time: 5.616794427 seconds (104413056 bytes allocated)
