Skip to content

Commit

Permalink
626
Browse files Browse the repository at this point in the history
  • Loading branch information
tomstuart committed May 10, 2011
1 parent 81cbdbe commit a208835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/golf.rb
Expand Up @@ -24,7 +24,7 @@
}
a.inject([]){|b,c|
(b[-1]||[])[-1] == (c-1) ? b[-1] << c : b << [c]
(b[-1]||[])[-1] == c-1 ? b[-1] << c : b << [c]
b
}.map{|x|[x[0],x[-1]].uniq*"-"}
Expand Down

0 comments on commit a208835

Please sign in to comment.