# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #112602]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112602 >


<TimToady> flussence: xx and X are lazy, but only on one side (though
for different reasons)
<TimToady> well, technically, X is lazy on both sides, but if you put
an infinite list on the right you'll never find the second value on
the left
<TimToady> perl6: .say for 1..* X* 1..*
<p6eval> niecza v16-23-gaa61ed5:
OUTPUT«(timeout)1␤2␤3␤4␤5␤6␤7␤8␤9␤10␤11␤12␤13␤14␤15␤16␤17␤18␤19␤20␤21␤22␤23␤24␤25␤26␤27␤28␤29␤30␤31␤32␤33␤34␤35␤36␤37␤38␤39␤40␤41␤42␤43␤44␤45␤46␤47␤48␤49␤50␤51␤52␤53␤54␤55␤56␤57␤58␤59␤60␤61␤62␤63␤64␤65␤66␤67␤68␤69␤70␤71␤72␤73␤74␤75␤76␤77␤78␤79␤8
<p6eval> ..rakudo 11c0ab: OUTPUT«(timeout)»
<TimToady> ooh, rakudobug!
* masak submits it
<TimToady> it's evaluating the RHS eagerly
<TimToady> though the spec is perhaps misleading when it says "Only
the leftmost list may usefully be an infinite list."
<TimToady> $prefix X~ @infinitelist is potentially useful

Reply via email to