On 29 Aug 2013 10:54, "Chris Angelico" <ros...@gmail.com> wrote:
>
> foreach (some_array, mixed val) if (some_condition)
> {
>     //do something with val
> }
>

I hope that you don't mind that I have started to use this in JavaScript
back at work. Its foreach loop requires you to do a filter all the time.

It is a shame that this is not possible in python. for..if exists in
comprehensions and not in regular loops but that would be nice sometimes.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to