Last active
August 16, 2023 19:41
-
-
Save elijahbenizzy/132f7114e003672672ac5c1d75b6d67c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def file_to_load() -> Parallelizable[str]: | |
for file_ in _list_files(...): | |
yield file_ | |
def file_contents(file_to_load: str) -> str: | |
with open(file_to_load) as f: | |
return f.read() | |
def all_contents(file_contents: Collect[str]) -> str: | |
out = "".join(file_contents) | |
return out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment