I\'d like to do something like this:
x = f(a[0]) or f(a[1]) or f(a[2]) or f(a[3]) or …
with a given list a and a given functio
a
This should work:
next((x for y in a for x in (f(y),) if x),False)