It would be useful (especially in the context of #5) to be able to quickly create an arbitrary generator that works by putting a value from another generator through a function. Essentially this is a map:
Note that this is mostly syntactic now; as long as arbitrary generators are normal generators, list comprehension can do the same. However, if we make those generators into custom objects at some point (due to variety of possible reasons), a special syntax for mapping will be necessary.
It would be useful (especially in the context of #5) to be able to quickly create an arbitrary generator that works by putting a value from another generator through a function. Essentially this is a map:
map
should probably be replaced by something else. We could even do it "applicative style" or "Unix style", with function overloading like that:Note that this is mostly syntactic now; as long as arbitrary generators are normal generators, list comprehension can do the same. However, if we make those generators into custom objects at some point (due to variety of possible reasons), a special syntax for mapping will be necessary.