for i in (1..10) { print i i == 10 && break print ', ' } print "\n"
Last updated 2 years ago
Was this helpful?