from
ErrorsCollection

from

Synthesised documentation from type/X/IO/Move type/Match type/X/IO/Copy type/X/IO/Rename type/CompUnit type/List

From type/X/IO/Move

See Original text in context

Returns the source of the failed move operation

From type/Match

See Original text in context

method from()

Returns the index of the starting position of the match.

From type/X/IO/Copy

See Original text in context

Returns the source of the failed copy operation

From type/X/IO/Rename

See Original text in context

Returns the source of the failed rename operation

From type/CompUnit

See Original text in context

method from(--> Str:D)

Returns the name of the language with which the CompUnit object was created (if any). It will be Raku by default.

From type/List

See Original text in context

Assumes the list contains Match and returns the value of .from called on the first element of the list.

'abcdefg' ~~ /(c)(d)/;
say $/.list.from;         # OUTPUT: «2␤» 
 
"abc123def" ~~ m:g/\d/;
say $/.list.from;         # OUTPUT: «3␤»