Help for this page

Select Code to Download


  1. or download this
    sub reduce {
      "@{[map 1x$_,@_]}"=~/(1+)\1* \1+$/;map$_/$+[1],@_
    }
    
  2. or download this
    sub reduce {
      ($x,$y)=@_;($x,$y)=($y%$x,$x)while$x;map$_/$y,@_
    }