14 lines
277 B
Python
14 lines
277 B
Python
def until(keys: list):
|
|
def select(value):
|
|
for key in keys:
|
|
if key in value:
|
|
return value[key]
|
|
return None
|
|
|
|
return select
|
|
|
|
|
|
def copy(source: dict, destination: dict):
|
|
for k, v in source.items():
|
|
destination[k] = v
|