Given a 1D array in Julia, find all elements which are between a (= 4) and b( = 7), in place.
a = 4;b = 7;
x = collect(1:10)
x[isless.(x,a)]
will find all the elements in array which are less than a = 4.
How to combine two logical operations in indexing.
x[isless.(x,a) && !isless.(x,b)]
is not working out.