ekmett / machines

Networks of composable stream transducers
Other
339 stars 46 forks source link

Make `intersperse` easier to understand #66

Closed treeowl closed 9 years ago

treeowl commented 9 years ago

Previously, the loop in intersperse would await a value before yielding the current value, making it a bit tricky to emit the last element. Simplified.