Created
March 8, 2019 12:42
-
-
Save developer-sdk/98fcb27f722e5d393943771c37f61fdc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| val employees = List("james", "s", "kevin", "paul") | |
| // 서술형 프로그래밍 | |
| val result1 = employees.filter(_.length > 1).map(_.capitalize).reduce(_ + "," + _) | |
| // par을 추가하여 병령처리 | |
| val result2 = employees.par.filter(_.length > 1).map(_.capitalize).reduce(_ + "," + _) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment