5 lines
131 B
Python
5 lines
131 B
Python
|
def with_prefix(prefixes, words):
|
||
|
for prefix in prefixes:
|
||
|
lst = [word for word in words if word.startswith(prefix)]
|
||
|
yield lst
|