I want to use the find function to find an address from a list of addresses
find(p : 'a => bool, l : list('a)) : option('a)
The document says that the ‘find’ function finds the first element of
l fulfilling predicate
None if no such element exists.
How do I put the predicate?
For example, I have a list of addresses in state called ‘addresses’ and I want to see if an address, ‘addr’ exists in the list. What do I write?