Struggling with having no early return

Enum.find_value is an option:

Enum.find_value([:first, :second, :third], fn value -> get_text(value) != nil end)

Or, as per above, assuming get_text returns strings and no booleans:

Enum.find_value([:first, :second, :third], &get_text/1)

But ya, I’m just giving you more to think about. I would also go with ||.

EDIT: I originally suggested the wrong function :grimacing: