tracks/pony/exercises/beer-song/example.pony in trackler-2.2.1.13 vs tracks/pony/exercises/beer-song/example.pony in trackler-2.2.1.14

- old
+ new

@@ -21,24 +21,25 @@ """ else let ns: String = n.string() let ns': String = (n - 1).string() recover String - .>append(ns) - .>append(" bottles of beer on the wall, ") - .>append(ns) - .>append(" bottles of beer.\nTake one down and pass it around, ") - .>append(ns') - .>append(" bottles of beer on the wall.\n") + .> append(ns) + .> append(" bottles of beer on the wall, ") + .> append(ns) + .> append(" bottles of beer.\nTake one down and pass it around, ") + .> append(ns') + .> append(" bottles of beer on the wall.\n") end end fun sing(start: USize, stop: USize): String iso^ => try String.join( Iter[USize](Reverse(start, stop)) - .map[String]({(n: USize): String => BeerSong.verse(n) + "\n"}) - .collect(Array[String](start - stop))) - .>pop()? + .map[String]({(n: USize): String => BeerSong.verse(n) + "\n" }) + .collect(Array[String](start - stop)) + .values()) + .> pop()? else recover String end end