5 ms·
Yeah, `interleave` is the best. In a large program it would be located in a Stream module, making it clear from context, not just the type. If you were using it
by tikhonj 11y ago
Yeah, `interleave` is the best. In a large program it would be located in a Stream module, making it clear from context, not just the type. If you were using it somewhere else, you would just import it qualified and use it as S.interleave or Stream.interleave.
At this point, I've come to believe that having too many functions with a set prefix or postfix is a code smell that's telling you to organize them into a module. Putting stream-related functions into a module has the same effect as naming them all with "-Stream" except it's actually part of the language and more flexible.