Skip to content

Commit af7ebb6

Browse files
authored
Update README.md
1 parent 9d9f990 commit af7ebb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scala/파트6. Collection/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ object LearnScala {
2727

2828
val a = Array(1, 2, 3)
2929
val b = List(4, 5, 6)
30+
3031
// 4. '++' 연산자: 앞의 데이터형으로 이어붙임
3132
a ++ b // Array(1, 2, 3, 4, 5, 6)
3233

@@ -41,6 +42,7 @@ object LearnScala {
4142
println(diffArray) // Array(1, 4)
4243

4344
val personArray = Array(("솔라", 1), ("문별", 2), ("휘인", 3))
45+
4446
// 6. find
4547
// 조건에 맞으면 검색 중단, getOrElse는 일치하는 값이 없을 경우 넘겨줄 기본 값
4648
// getOrElse가 없으면 기본값은 None

0 commit comments

Comments
 (0)