-
Notifications
You must be signed in to change notification settings - Fork 6
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
map
with lazy values
#52
Comments
Sorry for quick answer (I'm kinda jumping in here between tasks). If I understand you correctly you want the result of a computation to result in multiple files and to be able to do this lazily. If so, then I also have the same desire and I have made some experiments about it in #25. My experience with this is that the problem looks simple on the surface, but it becomes orders of magnitude more difficult to reason about the filetree as it (at least for me) is immensely difficult to keep in mind when and how the nodes will materialize, depsite having spent some time with the package and its internals. The code in #25 works and does what it should and I do make use of it in some of my own projects, its just that whenever I return to that project and want to do something new I get surprised stuff doesn't work as I expected. |
So since |
Wouldn't that be good to have as a |
I am trying to create a pipeline where audio files are read in, then a transformation is done which creates multiple versions of each audio file, and these are then saved. So as not to keep all audio files in memory at once, I want to use the laziness feature. But it seems that
map
seems to operate directly on theThunks
in the closure, and I don't know how to proceed there. The docs say thatmapvalues
works with lazy values (they don't say thatmap
doesn't) but I have to do return aFileTree
with my new files, and that doesn't work withmapvalues
.The text was updated successfully, but these errors were encountered: