Stéphane writes:
Hyper operators with operands of different size are partly covered
in A3:
Hyper operators will also intuit where a dimension is missing from one
of its arguments, and replicate a scalar value to a list value in that
dimension. That means you can
On Fri, Oct 05, 2001 at 09:50:53AM +0100, Richard Nuttall wrote:
my @images = qw( pic1 pic2 pic3) ^_ ('.jpg');
my @images = map { $_ _ '.jpg' } qw(pic1 pic2 pic3);
Hmmm, that's visually unappealing.
Just thinking out loud.
--
Michael G. Schwern [EMAIL PROTECTED]
I think this would be interesting for U :)
http://www.cs.yorku.ca/Courses/3401/lectures/340198-11-27HTML/
http://www.cogs.susx.ac.uk/local/books/nlp-in-prolog/ch04/chapter-04-sh-1.5.
html#sh-1.5
| On Thu, 4 Oct 2001, Michael G Schwern wrote:
|
| Backtracking is at the heart of Logic
Is the following correct for := :
left side is like function in the respect that the right side is treated
differently depending on the left-side-types i.e. left side is like
prototype!! for the right side.
(@a ,@b) := (@b,@a)
is the same as :
(\@a, \@b) = (\@b, \@a);#if we had ref-allowed on
Thus it was written in the epistle of David Nicol,
Michael G Schwern wrote:
Binary ;
This worries me. Giving ; two meanings makes basic language parsing
harder, which would be fine if there was a big payoff, but there's
not. Just making shorthand for [[1,2,3],[4,5,6]] doesn't seem
Thank you.
For those who aren't yet busy reading, you can find it at:
http://www.perl.com/pub/a/2001/10/03/exegesis3.html
David M. Lloyd:
# On Fri, 5 Oct 2001, Garrett Goebel wrote:
#
# For those who aren't yet busy reading, you can find it at:
# http://www.perl.com/pub/a/2001/10/03/exegesis3.html
#
# OK, I have a question.
#
# On page 3 you say:
#
# Because the Perl 6 diamond operator can take an arbitrary
#
When you say Unary here:
Binary (low) | Binary (high) |Unary
__|___|_
| |
or | || | |
Damian Conway wrote:
David Nicol wrote:
Hear ye, hear ye, Ming of Mongo has declared!
I really hope I'm just missing the implicit smiley there.
What you're missing is me wracking my memory to remember what
Dr. Zharkov called his tunneling craft that the hyperbinding
operator
Well, my head is definitely spinning. :) Thanks, Damian.
One oversight (on one of our parts - you either didn't put it in or I
didn't see it. :)): it looks like the example uses the new ; operator
(between the mandatory and option arguments in the function declaration?),
but it's not mentioned
Can I get a .car and a .cdr please? In my limited mind key and value
are specific to hashes and their wimpy brother associative lists.
-sam
Can I get a what what?
Is the following correct for := :
left side is like function in the respect that the right side is treated
differently depending on the left-side-types i.e. left side is like
prototype!! for the right side.
Yep.
(@a ,@b) := (@b,@a)
is the same as :
(\@a,
my @images = qw( pic1 pic2 pic3) ^_ ('.jpg');
Doesn't that clash with the default currying argument?
No. The DCA is: $^_
Damian
Well, my head is definitely spinning. :) Thanks, Damian.
Just doing my job, Citizen.
;-)
One oversight (on one of our parts - you either didn't put it in or I
didn't see it. :)): it looks like the example uses the new ; operator
(between the mandatory and option arguments
Can I get a .car and a .cdr please? In my limited mind key and value
are specific to hashes and their wimpy brother associative lists.
Sure. Roll-you-own with:
module PAIR;
method car { return .key }
method cdr { return .value }
or, if you're really
15 matches
Mail list logo