In R given by a vector x, one can find indices where its elements are TRUE. For instance. y = 1:100and which(is.even(y))should return 2,4, ..., 100
There is also which.max, and which.minwhich returns the index of the minimum and maximum values.
What are their equivalents in Julia?
source
share