On Mon, Apr 04, 2005 at 10:34:13PM -0400, Andrew Rodland wrote:
: On Monday 04 April 2005 06:34 pm, Juerd wrote:
: > Terrence Brannon skribis 2005-04-04 18:45 (+):
: > > So, to avoid confusion with the common understanding of flattening in
: > > Perl, perhaps it should be called spreading or di
Andrew Rodland skribis 2005-04-04 22:34 (-0400):
> > Likewise, "slurping" is probably best explained as collecting.
> I like this. I'd be tempted to suggest "scatter" / "gather", but that's
Gather is taken.
> probably a bit opaque to the average reader. How about describing them as
> "expand" /
On Mon, Apr 04, 2005 at 05:40:10PM +, Terrence Brannon wrote:
:
: A Perl 5 user thinks of flattening a data structure as taking
: something which is nested and "linearizing" it.
:
: FOR EXAMPLE:
:
: use Data::Hash::Flatten;
:
: # NESTED DATA
: my $a = { bill => { '5/27/96' => { 'a.dat'
On Monday 04 April 2005 06:34 pm, Juerd wrote:
> Terrence Brannon skribis 2005-04-04 18:45 (+):
> > So, to avoid confusion with the common understanding of flattening in
> > Perl, perhaps it should be called spreading or distributing.
>
> I agree.
>
> Likewise, "slurping" is probably best expla
Terrence Brannon skribis 2005-04-04 18:45 (+):
> So, to avoid confusion with the common understanding of flattening in
> Perl, perhaps it should be called spreading or distributing.
I agree.
Likewise, "slurping" is probably best explained as collecting.
Juerd
--
http://convolution.nl/maak_
Yikes. Sorry about the ressends... my email client kept dying and I
thought the mail was lost. Guess not. :-)
Trey
In a message dated Mon, 4 Apr 2005, Trey Harris writes:
> In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes:
> > What does pick return on hashes? Does it return a rando
In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes:
> What does pick return on hashes? Does it return a random value or a
> random pair? (I suppose returning a pair is more useful.)
I'd assume in all cases that pick returns an *alias*, and in the case of
hashes, an alias to the pair:
I'd assume you'd get an *alias* to a random pair:
# Test error-correction
for 1..$entropy_threshhold {
%hash.pick.value = rand $scribble_factor;
}
Trey
In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes:
> Hi,
>
>
> I remembered Damian saying that pick does not only work on
The first discussion of flattening had to do with a list of data being
flattened into an array.
Further down we see another different use of the word "flattening" :
http://dev.perl.org/perl6/synopsis/S06.html
section="Flattening lists">
The unary prefix operator * flattens its operand
A Perl 5 user thinks of flattening a data structure as taking
something which is nested and "linearizing" it.
FOR EXAMPLE:
use Data::Hash::Flatten;
# NESTED DATA
my $a = { bill => { '5/27/96' => { 'a.dat' => 1, 'b.txt' => 2,
'c.lsp' => 3 } },
jimm => { '6/22/98' => { 'x.prl'
:set encoding=utf8
:set fileencoding=utf8
The first controls the display, the second file saves. Vim has to have been
compiled with multibyte support, though.
From: Aaron Sherman <[EMAIL PROTECTED]>
Date: Mon, 4 Apr 2005 17:01:58 -0400
To: Larry Wall <[EMAIL PROTECTED]>
Cc: Perl6 Language List
In a message dated Mon, 4 Apr 2005, Ingo Blechschmidt writes:
> What does pick return on hashes? Does it return a random value or a
> random pair? (I suppose returning a pair is more useful.)
I'd assume in all cases that pick returns an *alias*, and in the case of
hashes, an alias to the pair:
On Mon, 2005-04-04 at 16:41, Larry Wall wrote:
> On Mon, Apr 04, 2005 at 03:55:23PM -0400, Aaron Sherman wrote:
> : but if you use vim or emacs inside a terminal, you'll want to make sure
> : it's in iso-latin-1 mode (e.g. in gnome-terminal, you have to use the
> : menu: "Terminal->Set Character En
On Mon, Apr 04, 2005 at 03:55:23PM -0400, Aaron Sherman wrote:
: but if you use vim or emacs inside a terminal, you'll want to make sure
: it's in iso-latin-1 mode (e.g. in gnome-terminal, you have to use the
: menu: "Terminal->Set Character Encoding")
If you going to that trouble, at least try yo
On Mon, 2005-04-04 at 15:07, Sam Vilain wrote:
> «»«»«»«»«»«»«»«»«»«»«»«»«»! :-þ
>
> an excerpt from my xkb config...
I think we've been over this ground before, but if you use EMACS, you'll
find this handy:
http://www.cs.tut.fi/~jkorpela/emacs-iso.html
Of course, some of the sequences used m
Ingo Blechschmidt wrote:
I remembered Damian saying that pick does not only work on junctions,
but on arrays and hashes, too (and I even found his posting :):
http://groups.google.com/groups?selm=420DB295.3000902%40conway.org).
Are the following assumptions correct?
my $junc = 1|2|3;
print $junc.
Juerd wrote:
For some reason, I keep typing :=: instead of =:=. Do other people
experience similar typo-habits with new operators?
One of my other Perl 6 typo-habits is <<^H^Hargh!^H^H^H^H^H«, but that's
because I like how « and » look, but can't yet easily type them.
Juerd
«»«»«»«»«»«»«»«»«»«»«»«»
Hi,
I remembered Damian saying that pick does not only work on junctions,
but on arrays and hashes, too (and I even found his posting :):
http://groups.google.com/groups?selm=420DB295.3000902%40conway.org).
Are the following assumptions correct?
my $junc = 1|2|3;
print $junc.pick; # "1", "2"
For some reason, I keep typing :=: instead of =:=. Do other people
experience similar typo-habits with new operators?
One of my other Perl 6 typo-habits is <<^H^Hargh!^H^H^H^H^H«, but that's
because I like how « and » look, but can't yet easily type them.
Juerd
--
http://convolution.nl/maak_jue
Thomas Sandlaß skribis 2005-04-04 18:50 (+0200):
> In particular what does &infix<=> do?
Depends. What does it mean? :)
Specifically, what is &infix, what is <=>?
> 'Scalar of Ref of Any' without dispatching to 'Ref of Int'. That means
References and aliasing should have nothing to do with type
Juerd wrote:
my $four := three;
Assuming you meant $three instead of three.
Indeed. Sorry.
my $five = 5;
$four = 4; # $one == 4 now?
No, $four (and thus $three, which it is bound to) is now 4. $three is a
reference, which is a value, which is now *replaced* with the new value.
OK. Then you need to
HaloO,
I'll just use what Paul Seamons wrote:
Consider:
method foo {
.do_one_thing
.and_another_thing
map { $_.do_something_with( .bar ) } .items;
# .bar worked on the invocant - not the items
.and_the_last_thing
}
because I don't have to invent examples
22 matches
Mail list logo