I mean, I guess it’s a contextual thing - if this ...
# getting-started
s
I mean, I guess it’s a contextual thing - if this code lives in a world where I can reasonably expect that list to be empty, I would use
firstOrNull
in combination with safe navigation or the elvis operator to keep going