Documentation for method parts

Documentation for method parts, assembled from the following types:

class IO::Path

From IO::Path

(IO::Path) method parts

Defined as:

method parts(IO::Path:D: --> Map:D)

Returns a Map with the keys volume, dirname, basename whose values are the same as available via methods .volume, .dirname, and .basename respectively.

# OUTPUT: «"perl6.bat"),:dirname("/rakudo"),:volume("C:")))␤» 

class Version

From Version

(Version) method parts

method parts(Version:D: --> List:D)

Returns the list of parts that make up this Version object

my $v1 = v1.0.1;
my $v2 = v1.0.1+;
say $;                                    # OUTPUT: «(1 0 1)␤» 
say $;                                    # OUTPUT: «(1 0 1)␤»