View difference between Paste ID: PYurEYgg and JZa2byqK
SHOW: | | - or go back to the newest paste.
1-
def sum(string: String): Int = {
1+
def sum(string: String): Int =
2-
  var retVal = 0
2+
  string split "#" map { _.toInt } sum