outer-caller-idx
ErrorsCollection

outer-caller-idx

Synthesised documentation from type/Backtrace

From type/Backtrace

See Original text in context

method outer-caller-idx(Backtrace:D: Int $startidx)

Returns as a list the index of the frames that called the current one.

sub zipi { { { die "Something bad happened" }() }() };
try zipi;
say $!.backtrace.outer-caller-idx4 ); # OUTPUT: «[6]␤»