On Sat, May 3, 2008 at 4:00 PM, John M. Dlugosz
<[EMAIL PROTECTED]> wrote:
> I've searched the archives, but did not see a good explanation of what eqv
> does, and what is meant by snapshotting in the description of the synopses.
>
> Can anyone explain it (with examples?) or point to an existing
On Mon, Apr 7, 2008 at 4:50 AM, TSa <[EMAIL PROTECTED]> wrote:
> HaloO,
>
>
> Larry Wall wrote:
>
> >(@a X @b X @c).elems == @a.elems * @b.elems * @c.elems
> >
>
> Sorry, I was aiming at defining a neutral element of the X
> operator.
A neutral element for the cross operator seems weird if
t to how they are used in other
expressions of the language).
It is all there somewhere in Section "Literals" of Synopsis 02
(http://perlcabal.org/syn/S02.html#Literals). More specifically, look
for the item that starts with "In addition to q and qq, there is now
the base form Q&
I just posted a report on this first week of the series of
micro-articles on Perl 6 operators. Read it at use.perl:
http://use.perl.org/~ferreira/journal/
Thank you all for the help so far.
Adriano.
On 9/18/07, David Vergin <[EMAIL PROTECTED]> wrote:
> > On 9/18/07, Paul Hodges <[EMAIL PROTECTED]> wrote:
> >>
> >> For the Gearheads
> >> We won't bore you with excess details,
> >> but for more info... c.f. ...
> >
h
> return $ruler; # and returns the string
> }
> my $r = page_ruler(25); # 0123456789012345678901234
I think small examples are a good idea. The problem is to have much
simpler ways to do some things, like
[~] map { $_ % 10 }, 0 ..^ $len
Obviously, this is fa
On 9/18/07, Joe Gottman <[EMAIL PROTECTED]> wrote:
> Adriano Ferreira wrote:
> > I salute every bit of help. I am trying to organize the production and
> > will hopefully provide more details soon. By now, I think that I can
> > handle suggestions and corrections to th
On 9/19/07, Moritz Lenz <[EMAIL PROTECTED]> wrote:
> Adriano Ferreira wrote:
> > http://ferreira.nfshost.com/perl6/stitching6.html
>
> A grammatical nit: "The infix operator '~' keeps the same precedence of
> '+' in Perl 6."
> I think that s
On 9/18/07, Paul Hodges <[EMAIL PROTECTED]> wrote:
>
> --- Adriano Ferreira <[EMAIL PROTECTED]> wrote:
> [[snips here and at end]]
> > > . . . I have one suggestion: you might want to mention
> > > the roundrobin function in the article on the zip functi
On 9/18/07, brian d foy <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Alberto Simões
> <[EMAIL PROTECTED]> wrote:
>
>
> > Adriano Ferreira wrote:
> > > The plan is to write a series of blog entries discussing a Perl 6
> > >
On 9/18/07, Agent Zhang <[EMAIL PROTECTED]> wrote:
> On 9/18/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote:
> >
> > Join me. The drafts of the introduction and the first article are here:
> >
> > http://ferreira.nfshost.com/perl6/intro.html
> > http://
On 9/17/07, Joe Gottman <[EMAIL PROTECTED]> wrote:
> Adriano Ferreira wrote:
> > Jesse Vincent has announced the acceptance of my microgrant proposal
> > (http://use.perl.org/~jesse/journal/34451). It is a plain simple
> > idea, whose effects are yet to be seen.
rticle are here:
http://ferreira.nfshost.com/perl6/intro.html
http://ferreira.nfshost.com/perl6/zip.html
(Yes. That has been published also in use.perl and PerlMonks. But I am
assuming I did not reach anybody that could help me out yet.)
Kind regards,
Adriano Ferreira
What is supposed to happen if one says:
class Dog {
has $:tail handles 'wag';
meth wag { # something else than $:tail.wag
}
}
Is it a compilation error? Or one of the definitions prevail (with a
warning or something)?
Adriano Ferreira.
On 7/29/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
> Or is @args always readonly and the declaration ([EMAIL PROTECTED] is rw) is
> an
> error?
The declaration ([EMAIL PROTECTED] is rw) can't be outlawed as it is how Perl 5
default sig translates to Perl 6.
IMHO @args as a parameter works
Larry said:
> So I guess I agree that .tailcall is probably just a bad synonym for "return".
But is there any other case where we need an explicit tail call with "goto"?
And about a way to curry a method with its receiver to a sub, is there
a shorthand?
Thanks,
Adriano.
On 7/20/05, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote:
> Is there a Perl 6 tail call syntax,
> One suggestion was a tweak of `can`'s definition: instead of returning
> a reference to the method, it returns one with the invocant already
> curried into it. Thus, the above becomes this:
On 5/19/05, Ingo Blechschmidt <[EMAIL PROTECTED]> wrote:
> I read this as that uniq should behave like Unix's uniq(1), i.e.
> removing only successive duplicates, e.g.:
> uniq [3,3,3,4,3] => [3,4,3] # what I meant
> uniq [3,3,3,4,3] => [3,4] # what you meant
That has been discussed
The former implementation can be shortened:
sub uniq {
my %h;
return grep { ! $h{$_}++ } @_;
}
But realize that none of the proposed solutions (which are based on
hashes for computing the return) is amenable to the extension Ingo
called for with comparator blocks.
Adriano.
quoting Damian's original mail[1]:
> uniq - remove duplicates without reordering
^^
Would not that mean the original order of the first ocurrence is
preserved? This is what Ruby Array#uniq does:
[4,1,2,4,2,3,5].uniq => [ 4, 1, 2, 3, 5]
The b
> Shouldn't these be just methods?
I guess not. This is Perl and OO is not mandatory, or even desirable
all the time.
Adriano.
21 matches
Mail list logo