in http://archive.develooper.com/perl6-language%40perl.org/msg11440.html Larry Wall wrote: >I'm wondering whether the single ones could indicate parallel streams. >We had the difficulty of specifying whether the C<for> loop should >terminate on the shorter or the longer stream. We could say that | >terminates on the longer, and & on the shorter. Possibly there's >some relationship with any() and all() in there as well. The | could >generally be construed as a comma that doesn't guarantee ordering. >So cases could be written
but then in the "for" loop @a | @b should result in *ordered* any(@a,@b) because we need to distinguish the first and second stream when attaching to the arguments of -> ... closure. While inside when @a|@b results in unordered any(...). How this lives together? arcadi.