Ordinarily I would agree with you. But I know my own brain and
how it works. I only learn by doing. Have tried to change that
and can't.
A good tutorial book *will* make you "do." The brian d foy book does
exactly that with things to try, and questions to explore in your own
code. It takes
The signatures in the docs are often the exact same signatures
as the code they are documenting.
> Str.^lookup('contains').candidates.map: *.signature.say
(Str:D: Cool:D $needle, *%_)
(Str:D: Str:D $needle, *%_)
(Str:D: Cool:D $needle, Cool:D $pos, *%_)
(Str:D: Str:D $needle, I
> On 12 Sep 2018, at 22:56, Joseph Brenner wrote:
> With perl6, I find myself stumbling over what to call the built-ins...
> "functions", "commands", "keywords”?
perhaps “builtins"?
Liz
> they were all just subs.
With perl5 code, I've gravitated to talking about "routines" when I don't
want to worry about whether something is technically a function or a
method. It doesn't seem to confuse anyone. (On the other hand, I've had
people make fun of me for using the word "subroutine",
On Tue, Sep 11, 2018 at 10:28:27PM -0700, ToddAndMargo wrote:
: Okay, foul!
:Str:D: Cool:D $needle
: why is there not a comma between "Str:D:" and "Cool:D"?
: And what is with the extra ":". By chance is the extra ":"
: a confusing way of using a comma for a separator?
Well, "confusing" is ki
Basically, ignore any advice to treat Nil as a normal value, because
it really is intended to represent the *absence* of a value as much as
possible. It's a bit like the way solid-state electronics treats "holes"
as if they were real particles, and gets away with it much of the time.
But not all t
Neat. The answer's round about right.
On 9/12/18, Fernando Santagata wrote:
> Patched :-)
> say (e**(i*pi)+1).round(10⁻¹²)
>
> On Wed, Sep 12, 2018 at 4:28 PM Parrot Raiser <1parr...@gmail.com> wrote:
>
>> Just for giggles, say e**(i*pi) + 1 prints 0+1.2246467991473532e-16i
>> which isn't exactly
Patched :-)
say (e**(i*pi)+1).round(10⁻¹²)
On Wed, Sep 12, 2018 at 4:28 PM Parrot Raiser <1parr...@gmail.com> wrote:
> Just for giggles, say e**(i*pi) + 1 prints 0+1.2246467991473532e-16i
> which isn't exactly right, but close enough for government work.
> (You could call it really right, the er
Just for giggles, say e**(i*pi) + 1 prints 0+1.2246467991473532e-16i
which isn't exactly right, but close enough for government work.
(You could call it really right, the error is imaginary. :-)* )
On 9/12/18, Parrot Raiser <1parr...@gmail.com> wrote:
> Built-in constants:
> pi, tau, e, i
>
> pe
Built-in constants:
pi, tau, e, i
perl6 -e 'say pi ~ " " ~ tau ~ " " ~ e ~ " " ~ i';
3.141592653589793 6.283185307179586 2.718281828459045 0+1i
(tau is 2pi, useful if you want to calculate the circumference of your tuits.
Pi and tau can also be accessed as the Unicode characters.
User-de
When you assign Nil to a string or any object, it takes its default value.
Cheers
El mié., 12 sept. 2018 a las 10:23, Simon Proctor ()
escribió:
> O learn something new everyday :)
>
> On Wed, 12 Sep 2018 at 08:46 Elizabeth Mattijsen wrote:
>
>> Also:
>>
>> my $a is default(Nil);
>>
>> >
> On Tue, 04 Apr 2017 11:05:05 -0700, c...@zoffix.com wrote:
> This is partially fixed now for `is equiv` with
> https://github.com/rakudo/rakudo/commit/f9f0883c6c and
> https://github.com/perl6/roast/commit/75f42755ec
FYI: with 6.d prep going on, I reverted[^1] that test for now
Don't want to s
> On Tue, 04 Apr 2017 11:05:05 -0700, c...@zoffix.com wrote:
> This is partially fixed now for `is equiv` with
> https://github.com/rakudo/rakudo/commit/f9f0883c6c and
> https://github.com/perl6/roast/commit/75f42755ec
FYI: with 6.d prep going on, I reverted[^1] that test for now
Don't want to s
O learn something new everyday :)
On Wed, 12 Sep 2018 at 08:46 Elizabeth Mattijsen wrote:
> Also:
>
> my $a is default(Nil);
>
> > On 12 Sep 2018, at 09:25, Simon Proctor wrote:
> >
> > If you don't define the type of a Scalar and don't assign to it you'll
> have an undefined Any (the Paren
Also:
my $a is default(Nil);
> On 12 Sep 2018, at 09:25, Simon Proctor wrote:
>
> If you don't define the type of a Scalar and don't assign to it you'll have
> an undefined Any (the Parent class of all the other types). If you assign Nil
> to it then you have the same effect.
>
> You can ma
If you don't define the type of a Scalar and don't assign to it you'll have
an undefined Any (the Parent class of all the other types). If you assign
Nil to it then you have the same effect.
You can make $x to be Nil by iether casting it : my Nil $x; or binding it
to Nil; my $x; $x := Nil;
Basica
In answer to "why the : between Str:D and Cool:D and why Int(Cool:D) ?" can
I just point out the video I linked (or the slides) which answer both of
these questions.
On Wed, 12 Sep 2018 at 06:29 ToddAndMargo wrote:
> On 09/11/2018 03:09 AM, ToddAndMargo wrote:
> > multi method contains(Str:D:
17 matches
Mail list logo