Skip to content

Instantly share code, notes, and snippets.

@rrgroovy
Created October 10, 2011 21:23
Show Gist options
  • Save rrgroovy/1276589 to your computer and use it in GitHub Desktop.
Save rrgroovy/1276589 to your computer and use it in GitHub Desktop.
文字列を一文字ずつ処理する
'abcdef'.each {
println it
}
for (s in '123456') {
println s
}
a
b
c
d
e
f
1
2
3
4
5
6
@rrgroovy
Copy link
Author

It's output.
a
b
c
d
e
f
1
2
3
4
5
6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment