sqrt(2), so there is no least
element under the ≤ ordering. If only C types were required to
have a *total* ordering rather than a *well*-ordering; things would be
so much simpler.
-- Minimiscience
n. I can give you a
complete proof of this if you like.
-- Minimiscience
[1] <http://en.wikipedia.org/wiki/Ordered_field>
nclusion in intervals; if you want a list of values in an interval,
use ... instead.
-- Minimiscience
raised to
the zeroth power is one (except, arguably, zero itself), but, given a
number $num, its zeroth root is a number $base such that $base ** 0 ==
$num, which, as stated above, only makes sense when $num == 1.
-- Minimiscience
to NaN.
But the very next part of the sentence reads "[returns] itself if C<$n
== 0>". If root($x, 0) is supposed to return a list containing both
NaN and $x, the specification should probably be explicit. If it's
meant to only return NaN, the "itself if C<$n == 0>" part needs to be
deleted.
-- Minimiscience
updating it each
iteration until true is returned, but it seems like Perl 6 should have
a better way.
Thanking you in advance,
Minimiscience
e current
block? Is this even necessary, i.e., is the observed behavior just a
bug in Rakudo, or is that too much to hope for?
#!/usr/bin/env perl6
use v6;
my @stuff = gather {
my @things;
for ^23 {
@things.push: $_;
if @things == 5 {
take @things;
@things = ();
}
}
}
say @stuff.perl;
__END__
-- Minimiscience
v6;
my Str $x = undef;
say ($x.?comb).perl;
This gives a "Use of uninitialized value" warning when run.
-- Minimiscience
ature? It seems like there should be more to it than that.
-- Minimiscience
s there some sort of shortcut (e.g., of the form ".‽method") for
calling a method on an object if the object is defined and returning
undef if it is not defined? I was hoping that ".?method" could do
this, but it doesn't seem to (in Rakudo, at least).
Thank you in advance,
Minimiscience
true value"
definition for ^^ and xor would make Perl 6 inconsistent with itself.
I was going to say more in support of adding a separate operator for
"exactly one true value," but Darren Duncan beat me to it.
-- Minimiscience
e) could be problematic.
To summarize: either bring ^^ and xor with more than two operands in
line with the mathematical definition (possibly by just making them
left-associative and rewriting the descriptions to match), or stop
calling them "exclusive or."
-- Minimiscience
a.pop;
(Note that, in addition to the use of .pop, $rs is now acquired before
$ls.)
At least, I think that's how it works.
-- Minimiscience
should be there. I
think it might be causing the grammar engine to check whether it can
omit the ending of each tag and attach it to the enclosing tag
instead, which it can't confirm without examining the whole file at
least once for each tag.
-- Minimiscience
14 matches
Mail list logo