# Pastebin 9z5ZaYns let count = bottles: if bottles > 1 then "${toString bottles} bottles" else if bottles == 1 then "${toString bottles} bottle" else "no more bottles"; sing = bottles: if bottles > 0 then '' ${count bottles} of beer on the wall ${count bottles} of beer Take one down and pass it around, ${count (bottles - 1)} of beer on the wall. ${sing (bottles - 1)}'' else '' No more bottles of beer on the wall, no more bottles of beer. Go to the store and buy some more, 99 bottles of beer on the wall. ''; in builtins.trace (sing 99) ""