a={it.each{printf("%02d",it-96)}} a("abcdefghijklmnopqrstuvwxyz".chars) println "\nhelloworld - yields:" a("helloworld".chars) println "\ncodegolf - yields:" a("codegolf".chars)