In Backtrace::Frame§
See primary documentation in context for method is-routine
method is-routine(Backtrace::Frame: --> Bool)
Return True
if the frame points into a routine (and not into a mere Block).
my = Backtrace.new;my = [0];say .is-routine;