What's the Perl 6 equivalent of Python `itertools.chain`?

2016-12-07 Thread Hiroki Horiuchi
Hello. I mean, I need a way to concat lazy lists into a lazy list. Thanks. -- Hiroki Horiuchi from Japan

[perl #130293] is default on a hash prevents autovivification, but doesn't work on its own either

2016-12-07 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #130293] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=130293 > moritz: m: my %h is default([]); %h.push: 1; %h.push: 2; say %h camelia: rakudo-moar 2d019

[perl #130284] [LTA] .pick with negative numbers talks about MVMArray ( 1.pick(-1) )

2016-12-07 Thread Zoffix Znet via RT
On Tue, 06 Dec 2016 16:16:28 -0800, alex.jakime...@gmail.com wrote: > Code: > say 1.pick(-1) > > Result: > MVMArray: Index out of bounds > in block at -e line 1 > > > There's no “index” in my code, that's a number of elements. We > probably want an error message that is not so low-level-ish.

[perl #130273] Fwd: [BUG] [REGEX] error : “Cannot find method 'ann' on object of type NQPMu”

2016-12-07 Thread jn...@jnthn.net via RT
On Mon, 05 Dec 2016 22:58:27 -0800, rongshe...@gmail.com wrote: > > - > > Okay, I am still having trouble with perl6 grammar and action. I want to > find a pattern in a string, and as soon as it is is found, change th

[perl #130288] [LTA] [REGRESSION] xx no longer produces a nice message if unable to numify a string (42 xx ‘123abc’)

2016-12-07 Thread Zoffix Znet via RT
On Tue, 06 Dec 2016 19:00:22 -0800, alex.jakime...@gmail.com wrote: > Code: > say 42 xx ‘123abc’ > > Result (2016.06): > Cannot convert string to number: trailing characters after number in > '123abc' (indicated by ) > in block at /tmp/vENGo0kTCa line 1 > > Actually thrown at: > in block at

[perl #128985] [SEGV] in multi-level list reduction/evaluation

2016-12-07 Thread jn...@jnthn.net via RT
On Thu, 18 Aug 2016 09:39:30 -0700, ajs wrote: > Was trying to list perfect numbers: > > [12:37] m: say ^1000 .grep: -> $n {([+] ^$n .grep: -> $m {$m > and $n %% $m}) == $n } # Perfect numbers? > [12:37] <+camelia> rakudo-moar 643c0f: OUTPUT«(signal SEGV)» > I can't reproduce this on HEAD, even

[perl #130266] [BUG] t/spec/S32-io/IO-Socket-Async.t generates errors under ASAN/Valgrind

2016-12-07 Thread jn...@jnthn.net via RT
On Mon, 05 Dec 2016 02:25:00 -0800, jan-olof.hen...@bredband.net wrote: > While running the spectests through ASAN nwc10++ found an invalid read error > in t/spec/S32-io/IO-Socket-Async.t. Have included both ASAN and valgrind > output. Note that the valgrind output is from a 32 bit system while (I