Python d'abord
# find first item to match condition
# with error if not found
next((x for x in the_iterable if x > 3))
# .. or provide default value if not found
next((x for x in the_iterable if x > 3), default_value)
just-saved-you-a-stackoverflow-visit