On Wed, Mar 18, 2009 at 06:32:18PM -0700, Jon Lang wrote:
: > + method !eigenstates (Junction $j: --> List)
:
: Shouldn't that be lowercase-j junction?
Maybe, though there might be a Junction role involved for subtype
matches like that one.
Larry
> + method !eigenstates (Junction $j: --> List)
Shouldn't that be lowercase-j junction?
--
Jonathan "Dataweaver" Lang
Author: lwall
Date: 2009-03-19 01:43:53 +0100 (Thu, 19 Mar 2009)
New Revision: 25902
Modified:
docs/Perl6/Spec/S05-regex.pod
Log:
[S05] define .caps and .chunks methods on match objects
Modified: docs/Perl6/Spec/S05-regex.pod
===
Mark J. Reed wrote:
Shouldn't that desugar to (Int $ where 0)? After all, 0.WHAT is Int...
Yes, I proposed that in my second reply too, after realizing .WHAT gave
us that too. :-)
Of course, then someone will expect multi sub fib (0|1) { return @_[0]
} to DTRT here...
That's fine, bec
2009/3/18 Moritz Lenz :
>> +You can leave out the block when matching against a literal value of some
>> +kind:
>> +
>> + multi sub fib ($n where 0|1) { return $n }
>> + multi sub fib (Int $n) { return fib($n-1) + fib($n-2) }
>> +
>> +In fact, you can leave out the 'where' declaration altoget
Hello friends!
s1n and I decided that we would start Dallas.p6m as we are close to each
other geographically speaking. We are meeting tomorrow (Thursday, March 19,
7:00PM) at a coffee shop with free wifi. The address is 985 W Bethany Dr
Allen, TX 75013.
So far it looks like it will be s1n, me, a
Jonathan Worthington wrote:
Moritz Lenz wrote:
pugs-comm...@feather.perl6.nl wrote:
+You can leave out the block when matching against a literal value
of some
+kind:
+
+multi sub fib ($n where 0|1) { return $n }
+multi sub fib (Int $n) { return fib($n-1) + fib($n-2) }
+
+In fact, yo
Moritz Lenz wrote:
pugs-comm...@feather.perl6.nl wrote:
+You can leave out the block when matching against a literal value of some
+kind:
+
+multi sub fib ($n where 0|1) { return $n }
+multi sub fib (Int $n) { return fib($n-1) + fib($n-2) }
+
+In fact, you can leave out the 'where' d
pugs-comm...@feather.perl6.nl wrote:
> Author: masak
> Date: 2009-03-14 13:34:42 +0100 (Sat, 14 Mar 2009)
> New Revision: 25821
>
> Modified:
>docs/Perl6/Spec/S12-objects.pod
> Log:
> specced syntactic 'where' sugar in param lists
>
> Modified: docs/Perl6/Spec/S12-objects.pod
> ==
Author: coke
Date: 2009-03-18 21:10:41 +0100 (Wed, 18 Mar 2009)
New Revision: 25895
Modified:
docs/Perl6/Spec/S02-bits.pod
Log:
Correct minor typo in metadata.
(... unless that's Welsh, in which case my bad.)
Modified: docs/Perl6/Spec/S02-bits.pod
Author: lwall
Date: 2009-03-18 20:46:15 +0100 (Wed, 18 Mar 2009)
New Revision: 25891
Modified:
docs/Perl6/Spec/S02-bits.pod
docs/Perl6/Spec/S06-routines.pod
docs/Perl6/Spec/S09-data.pod
docs/Perl6/Spec/S32-setting-library/Containers.pod
Log:
junctions are now considered a native type w
Author: lwall
Date: 2009-03-18 20:04:16 +0100 (Wed, 18 Mar 2009)
New Revision: 25890
Modified:
docs/Perl6/Spec/S03-operators.pod
Log:
kill off int as a prefix operator to avoid confusion with the type name
Modified: docs/Perl6/Spec/S03-operators.pod
===
Author: lwall
Date: 2009-03-18 19:24:25 +0100 (Wed, 18 Mar 2009)
New Revision: 25889
Modified:
docs/Perl6/Spec/S05-regex.pod
Log:
Destroy the term "result object" in favor of "abstract object" and AST-Think.
Modified: docs/Perl6/Spec/S05-regex.pod
=
HaloO,
On Tuesday, 17. March 2009 10:25:27 David Green wrote:
> > That is, it would return a Junction of Str, not a Str. So the
> > question is how to get something that returns an expression to the
> > effect of:
> > 'any(' ~ $choice.eigenstates.«perl.join(',') ~ ')'
>
> say $choice.perl
>
>
On 3/15/09 11:19 AM, Richard Hainsworth wrote:
The following (the n:> is to mark the lines) are legal:
1:> my @x = 1,2,3,4; ([+] @x).say; # output 10
2:> my @x = 1|11,2,3,4; ([+] @a).perl.say; # output any(10,20)
3:> my @x = 1|11,2,3,4; ([+] @a).eigenstates.min.say; # output 10
However, the nex
15 matches
Mail list logo