Having programmed mostly in IDL before coming to Julia, is there a command similar to IDL’s WHERE() function? The WHERE() function returns an array of indeces given a certain condition, so in IDL I could write:
> day = ["mon","tue","wed","mon"] > index = where(day eq "mon" or day eq "tue") > print,day[index] mon tue mon
I just don’t know the best way to achieve a similar result with Julia.
Thanks in advance for your help!