method WHICH
1 | class Range |
1.1 | (Range) method WHICH |
2 | class Mu |
2.1 | (Mu) method WHICH |
3 | class IO::Special |
3.1 | (IO::Special) method WHICH |
Documentation for method WHICH
assembled from the following types:
class Range
From Range
(Range) method WHICH
Defined as
multi method WHICH (Range:)
This returns a string that identifies the object. The string is composed by the type of the instance (Range
) and the min
and max
attributes:
say (1..2).WHICH # OUTPUT: «Range|1..2»
class Mu
From Mu
(Mu) method WHICH
multi method WHICH(--> ObjAt)
Returns an object of type ObjAt which uniquely identifies the object. Value types override this method which makes sure that two equivalent objects return the same return value from WHICH
.
say 42.WHICH eq 42.WHICH; # OUTPUT: «True»
class IO::Special
From IO::Special
(IO::Special) method WHICH
method WHICH(IO::Special: --> Str)
This returns a string that identifies the object. The string is composed by the type of the instance (IO::Special
) and the what
attribute:
.path.what; # OUTPUT: «<STDIN>».path.WHICH; # OUTPUT: «IO::Special<STDIN>»