I want to find a particular element in a list like this:
my_list.find { |e| e == 'find this' }
I know in Python I can do:
[e for e in my_list if e == 'find this']
But this returns a list as opposed to the element I want.
I know how I can do this by iterating through the list, but I want to know if there's a more concise way of doing it.