develooper Front page | perl.perl6.users | Postings from September 2018

method vs multi method

Thread Next
September 14, 2018 22:44
method vs multi method
Message ID:
Hi All,

In the following:

     multi method kv(Any:U:  -->List)
     multi method kv(Any:D:  -->List)

Does the "multi" mean ther are moe than one way to
use the method, as in see the two instances above?
Or something else?

Also, it there was only one way to use the method,
would it be written:

     method kv(Any:  -->List)

Many thanks,

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About