LOOP BREAK은 다음과 같이 조금은 복잡한 편
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import util.control.Breaks._ | |
object B { | |
breakable { | |
for (i <- 0 until n) if (!sth) break | |
} | |
} |
'소프트웨어 개발 > Scala - Functional' 카테고리의 다른 글
Spark를 이용한 데이터분석 (1) - 준비하기 (0) | 2016.12.25 |
---|---|
순회 출력 (0) | 2016.09.16 |
Scala 다차원 배열 및 초기화 (0) | 2016.09.14 |
Scala 문자열과 일치 여부 (0) | 2016.07.30 |
[참고자료] fork in run (0) | 2015.12.28 |