I would like to subset a vector by a simple condition and keep result in the initial vector:
x = [1,2,3,4,5]
y = 4
x = x[x .< 4]
1 2 3
It works fine but if I have longer variable name, it looks like this:
position = position[position .< 4]
Is there other more elegant way to do this without typing the same variable name 3 times in Julia.