On Mon, Feb 17, 2014 at 12:37 PM, Patrick O'Leary
<[email protected]>wrote:

> This is something more subtle than that:
>
> In [3]:
>
> [(x->x)(x) for x in [1,2,3]]
>
> Out[3]:
>
> 3-element Array{Int64,1}:
>  1
>  2
>  3
>
> Hmm. weird. Why does the type go through correctly when the anonymous
function is inline.

Figured out why map() is not implemented as [(fx) for x in a] !! :)

Reply via email to