Darren (>):
> (I apologize if
> this isn't correct Perl 6, and I'm not sure how to specify a hash slice that
> returns pairs rather than just values):
Ask, and it shall be given you (by S02):
%hash = (:a, :b);
%hash; # returns 'A', 'B', Nil
%hash :p;# returns a => 'A', b =>
Oha wrote:
Hi,
I was thinking how to abuse the p6 grammar to simplify the interface to
SQL DBs.
- First i wanted to have a SELECT which works like a map.
- Then i wanted to use a pointy block to bind fields to variables.
- And i wanted also to make it lazy.
Ah, you have touched on a matter
Hi,
I was thinking how to abuse the p6 grammar to simplify the interface to
SQL DBs.
- First i wanted to have a SELECT which works like a map.
- Then i wanted to use a pointy block to bind fields to variables.
- And i wanted also to make it lazy.
I come up to the following code:
my $d