Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (5 sloc) 141 Bytes
use v6;
for $*IN.lines() -> $text
{
say $text.subst(/x_(\d) y_(\d)/, { "\$a.coordinates[{$0 - 1}] * \$b.coordinates[{$1 - 1}]" }, :g);
}
Something went wrong with that request. Please try again.