This is a dup of #129304, which has been fixed with c78f5dc7df5b1398d2867 ,
tests needed.
> On 19 Sep 2016, at 01:00, Benjamin Goldberg (via RT)
> wrote:
>
> # New Ticket Created by Benjamin Goldberg
> # Please include the string: [perl #129305]
> # in the subject line of all future corresp
Fixed with c78f5dc7df5b1398d2867 , tests needed.
> On 19 Sep 2016, at 00:46, Aleks-Daniel Jakimenko-Aleksejev (via RT)
> wrote:
>
> # New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
> # Please include the string: [perl #129304]
> # in the subject line of all future correspondence abou
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #129307]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=129307 >
The S05-match/perl.t contains this test:
is-deeply EVAL($/.perl), $/, 'EVAL of Match
I'm guessing that what you meant was "say as a function was what I meant to
use there." In which case:
say for reverse lines
or
for reverse lines { say }
These are both valid ways of asking for each element of the iterable thing
returned from lines to be printed with a newline.
But remember th
"for @inputs.map( .prefix:<+> ) {...}"
That's spelled:
"for @inputs>>.Int -> $i { ... }"
You can also use map, but it's slightly clunkier:
"for @inputs.map: .Int -> $i { ... }"
Aaron Sherman, M.:
P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com
Toolsmith, developer, gamer and
On 19/09/16 15:56, Aaron Sherman wrote:> You can also use map, but it's
slightly clunkier: > > "for @inputs.map: .Int -> $i { ... }"
This also needs to have "*.Int" or "{ .Int }" otherwise you'll pass
$_.Int as the argument to map rather than telling map to call .Int on
things.
On 19/09/16 16:02, Aaron Sherman wrote:
> I'm guessing that what you meant was "say as a function was what I > meant to
> use there." In which case: > > say for reverse lines > > or
> > for reverse lines { say } > > These are both valid ways of asking
for each element of the iterable > thing retur
It may make it clearer if I explain the broader objective. I'm trying
to learn P6 thoroughly by developing training courses to teach it from
scratch. (Fans of Gerald Weinberg may recognise the idea.) Obviously,
while doing so, I want to explore pathological cases, both to clarify
the concepts and t
Thank you. Silly me, thinking "this is so simple I don't need to run it
through the command-line to test it." :-)
Anway, yeah,
say $_ for reverse lines
Aaron Sherman, M.:
P: 617-440-4332 Google Talk, Email and Google Plus: a...@ajs.com
Toolsmith, developer, gamer and life-long student.
On Sat Apr 23 01:51:35 2016, barto...@gmx.de wrote:
> The following code (from S06-advanced/wrap.t, test skipped for rakudo-
> j) dies on rakudo-jvm:
>
> $ perl6-j -e 'my @t = gather { sub triangle { take "=" x 3; }; for
> reverse ^3 -> $n { &triangle.wrap({ take "=" x $n; callsame; take "="
> x $
On Fri Jun 05 02:00:55 2015, ppab...@implix.com wrote:
> $ perl6 -e 'loop { $_ ~~ /.+/ }'
>
> While it runs two different error messages are returned:
>
> 1. Use of uninitialized value of type Any in string context in block
> at -e:1
> 2. Use of uninitialized value of type Any in string context
On Fri Jan 08 21:03:49 2016, ju...@tnx.nl wrote:
> $ perl6 -e'say "hello".comb(/:m <[o]>/)'
> ===SORRY!===
> chr codepoint cannot be negative
>
--
Will "Coke" Coleda
I can no longer duplicate this:
$ perl6 --version
This is Rakudo version 2016.08.1 built on MoarVM version 2016.08
12 matches
Mail list logo