Korean Looping
Groovy는 평범한 자바의 while {...} 루프를 지원합니다:
for 루프
Groovy의 for 루프는 매우 간결하며 배열, 콜랙션, 맵 등에 대해 모두 사용 가능합니다.
비고: 표준 for 루프는 beta-10 이전에는 구현되어 있지 않습니다
// for (int i = 0; i < 5; ++i) // beta-10 까지는 구현되지 않음
클로저
for 루프가 쓰일만한 대부분의 상황에서 루프 대신 each() 혹은 eachWithIndex()와 클로저를 사용할 수 있습니다:
Search
Results of your search request can come from various sources: the Groovy website itself,
the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.
|
|
![]()
By
- pages
- views
- last modified
|