Hi,
I am thinking about the neatest way to neatest way to project an iterable of structs to an iterable of a member of each of these structs. For example:
struct Point
x::Int
y::Int
end
points=[Point(1,11),Point(2,12)]
#1.
xCoordinates=map(points) p do p.x end
#2.
xCoordinates=getproperty.(points,:x)
#3. (does not work)
xCoordinates=points..x
& 2. work, but I do not find these syntaxes particularly beautiful. Is there a way to do it similarly to 3. that works?