Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 플러터
- 크롤러
- ML
- DART
- texttheme
- Class
- textstyle
- 클래스
- import
- variable
- Flutter
- List
- python
- animation
- 다트
- Collection
- Android
- kotlin
- 코틀린
- pushnamed
- map
- text
- set
- 파이썬
- 웹크롤러
- function
- crawler
- 콜렉션
- package
- 함수
Archives
- Today
- Total
목록vararg (1)
조용한 담장

코틀린(kotlin) 의 함수 (funciton) 에 대해 살펴보자. 원문 https://kotlinlang.org/docs/reference/functions.html 을 보며 정리. Function declarations 함수 정의는 fun 키워드를 사용한다. fun double(x: Int): Int { return 2 * x } Function usage 함수 호출 val result = double(2) 멤버 함수 호출 Stream().read() // create instance of class Stream and call read() Parameters 함수 파라미터는 Pascal notation 을 써서 정의한다. 각 파라미터는 type 이 정의되어야 한다. fun powerOf(numbe..
kotlin
2020. 1. 2. 16:57