Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can section do early evaluation? #2

Open
rebelsky opened this issue Jan 5, 2022 · 0 comments
Open

Can section do early evaluation? #2

rebelsky opened this issue Jan 5, 2022 · 0 comments

Comments

@rebelsky
Copy link
Contributor

rebelsky commented Jan 5, 2022

Consider something like

(map (section tally-value (file->words "myfile.txt") <>) wordlist)

It feels like we should be able to read the file only once. However, the parameters to section may depend on the environment, which means that we can't evaluate until runtime. Need to think more about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant