n find me there as 'fglock'.
Please share your comments either here on the mailinglist or via IRC.
I look forward to your feedback
thanks!
- Flavio S. Glock (fglock)
loaded to the old behaviour.
Anyway, it's just a thought.
thanks!
- Flavio S. Glock
','
(+)
[ \\* { return ( $/[0]()*$/{mul}() ) }
| <\'\'>
]
' );
Pugs::Compiler::Token->install( 'sum','
[ \\+ { return $/{mul}()+$/{sum}() }
| <\'\'> { return $/{mul}() }
]
' );
my $s = shift;
my $match = main->sum( $s );
print $match->();
---
- Flavio S. Glock
precedence.
This grammar is compiled to p5 using lrep.
- Flavio S. Glock
lt; 1 && 2 < 2
> || ...
2 < 1
| 2 < 2
| 2 < 3
which ends up being the same thing after simplification
- Flavio S. Glock
plement_next => sub ($x) { $x < 0 ?? 0 !!Inf },
complement_previous => sub ($x) { $x > 0 ?? 0 !! -Inf },
universe => $universe );
- Flavio S. Glock
t;A
> draft on the runtime view of how Lazy things (like Arrays) work").)
Thanks for reading!
- Flavio S. Glock
efaults.
How about allowing reduce() to return a scalar with the same laziness
as the list:
[EMAIL PROTECTED] - a lazy string if @list is lazy
[EMAIL PROTECTED] - a lazy number if @list is lazy
It would look like:
$foo = substr( [~](1..Inf), 10 );
my $revfoo := reverse $foo;
$revfoo ~~ s/foo/bar/g;
- Flavio S. Glock
Juerd:
2005/11/23, Juerd <[EMAIL PROTECTED]>:
> Flavio S. Glock skribis 2005-11-23 10:13 (-0200):
> > Can we have:
> > say 1..Inf;
>
> It's important, I think, to note that this isn't item context, but list
> context. Str list context, but still
- Flavio S. Glock
10 { @a }
when $_ < 20 { @b }
when $_ < 30 { @c }
@d
};
- Flavio S. Glock
s ) = %hash;
zip( @even, @odd ) = 0...;
- Flavio S. Glock
d this in #perl6 when I was implementing lazy arrays (in the p5
backend), and most people found it was useless. But I thought I would
just ask again :)
- Flavio S. Glock
I wonder if infinite sets (recurrences) will be supported - then I'll
move all(ext/Recurrence, ext/Span, ext/Set-Infinite) to
Perl6::Container::Set::Ordered - cool.
- Flavio S. Glock
2005/8/10, Dave Whipp <[EMAIL PROTECTED]>:
> Luke Palmer wrote:
>
> > A new development i
Just wondering - would 'reverse =$foo' call '$foo.previous()' ?
- Flavio
2005/7/29, Aankhen <[EMAIL PROTECTED]>:
> On 7/29/05, Flavio S. Glock <[EMAIL PROTECTED]> wrote:
> > Is "for =" only for filehandles? I tried:
>
> No, it's f
what you
> tried should be working.
Is "for =" only for filehandles? I tried:
pugs> say for =1
*** cannot cast from VInt 1 to Handle (VHandle)
- Flavio S. Glock
at this is not fully specified yet, but I'd like to
start writing some tests for it.
Thanks!
- Flavio S. Glock
17 matches
Mail list logo