Re: Arrays vs. Lists

2003-02-09 Thread Joseph F. Ryan
Deborah Ariel Pickett wrote: I'm trying, and failing, to accurately and definitively answer the question "what's the difference between an array and a list in Perl6?" If someone can come up with a simple but accurate definition, it would be helpful. While I like the glib "Arrays are varia

Re: Arrays vs. Lists

2003-02-09 Thread Deborah Ariel Pickett
> I'm trying, and failing, to accurately and definitively answer the > question "what's the difference between an array and a list in Perl6?" > If someone can come up with a simple but accurate definition, it would > be helpful. While I like the glib "Arrays are variables that hold lists" explan

Re: A4 aliasing syntax (and a note on statement modification)

2003-02-09 Thread Erik Steven Harrison
-- On Fri, 7 Feb 2003 16:28:43 gpurdy wrote: >All -- > >A4 gives this example of C: > >for @foo -> $a, $b { ... } # "for @foo into $a and $b..." > >but, this seems more natural to me (and, it turns out, closer to the P5 >syntax for ill or good): > >for $a, $b <- @foo { ... } # "for

Re: A4 aliasing syntax (and a note on statement modification)

2003-02-09 Thread Michael Lazzaro
On Saturday, February 8, 2003, at 02:53 AM, Luke Palmer wrote: If you're talking about your own C example, actually, this would match it better: grep $x <- @list { $x eq 3 } But if you're talking about A4's: grep @list -> $x { $x eq 3 } Which is very close to (one of) the currently v