using System; module StringExt { public Capitalize(this s : string) : string { Char.ToUpper(s[0]).ToString() + s.Substring(1) } } def beers(n) { | 0 => "no more bottles of beer" | 1 => "1 more bottle of beer" | _ => $"$n bottles of beer" } def onTheWall = n => $"$(beers(n)) on the wall, $(beers(n)).\n";