Skip to content

Commit

Permalink
[Week1][입문편] 20강 scope function (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
toychip committed Jun 26, 2024
1 parent 4ad728c commit 92c7136
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,14 @@ takeIf: 주어진 조건을 만족하면 그 값이, 그렇지 않으면 null이

takeunless: takeIf 의 반대

## 20강 코틀린의 function의 분류

let, run, also, apply, with

with만 확장함수가 아님

람다의 결과: let, run

객체 그 자체: also, apply

컨벤션을 지키자. 개인적으로 굳이라는 느낌이 느껴짐

0 comments on commit 92c7136

Please sign in to comment.