I wonder what is wrong with using anonymous function ... Thanks, Jan
Dňa streda, 21. októbra 2015 15:31:08 UTC+2 Ján Dolinský napísal(-a):
>
> Interestingly:
>
> _g(x) = "[" * x * "]"
> _g (generic function with 1 method)
>
> @time st2 = map(_g, s)
> 0.000044 seconds (11 allocations: 544 bytes)
> 3-element Array{ASCIIString,1}:
> "[as]"
> "[sdf]"
> "[qwer]"
>
> This time map() has even lower footprint then original comprehension.
>
> Jan
>
>>
>>>
