matchingKey

From a collection of strings, return an entry which matches the search term ignoring case

Return

an Optional value which might contain the key that matches the search

Parameters

collection

the collection to search

search

the key you're looking for