On 12/20/20 12:30 AM, Francis Grizzly Smit wrote:
On 20/12/2020 19:17, ToddAndMargo via perl6-users wrote:
Hi All,
https://docs.raku.org/routine/cos
method cos()
Where is the definition of what is fed to the method?
Should it no be something like:
method cos( Cool:D --> Cool:D )
What am I missing?
umm it looks right to me a method has a this or self argument (the
invocant) so that would be what it operates on
i.e.
say0.cos; # OUTPUT: «1»
saypi.cos; # OUTPUT: «-1»
-T
--
.~. In my life God comes first....
/V\ but Linux is pretty high after that :-D
/( )\ Francis (Grizzly) Smit
^^-^^http://www.smit.id.au/
Hi Francis,
Oh I completely know how to use it. I am looking
at the doc page and wondering why the definition
line is missing. I obviously can't feed it a string.
-T