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/

Reply via email to