Documentation for method lookup

Documentation for method lookup, assembled from the following types:

class Metamodel::ClassHOW

From Metamodel::ClassHOW

(Metamodel::ClassHOW) method lookup

method lookup(Metamodel::ClassHOW:D: $obj$method-name --> Method)

Returns the first matching Method with the provided name or Nil. It is faster than .^can but does not provide a full list of all candidates.

say Str.^lookup('Int').perl# OUTPUT: «method Int (Str:D $: *%_) { #`(Method|39910024) ... }␤»