Skip to content

Instantly share code, notes, and snippets.

@colomon
Created July 21, 2010 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colomon/485140 to your computer and use it in GitHub Desktop.
Save colomon/485140 to your computer and use it in GitHub Desktop.
my $factor = @lhs[*-2] / @lhs[*-3];
if $factor ~~ Rat && $factor.denominator == 1 {
$factor = $factor.Int;
}
$next = { $_ * $factor };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment