8 lines
152 B
Python
8 lines
152 B
Python
|
|
class Utils:
|
|
def lookup(self, name, lst, func):
|
|
for x in lst:
|
|
if name == func(x):
|
|
return x
|
|
return None
|