hi,
I'd like to achieve following effect
a=[11, -1, -1, -1]
msg=['one','two','tree','four']
msg[where a<0]
['two','tree','four']
In similar simple fashion (without nasty loops).
PS. For curious people this if statement is working natively in one of functional languages.
//EDIT
I know that below text is different that the requirements above, but I've found what I wonted to acheave. I don't want to spam another answer in my own thread, so I've also find some nice solution, and I want to present it to you.
filter(lambda x: not x.endswith('one'),msg)