def from=330def to=334def res=(from..to).collect{ "foo/" + it}.join(" ")println(res)
Standard input is empty
foo/330 foo/331 foo/332 foo/333 foo/334
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!