반응형
Notice
Recent Posts
Recent Comments
Link
- Today
- Total
07-05 05:44
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- MVC
- substr
- scheduledTimer
- Upper
- trunc
- deeplearning
- 명령어
- ios
- 딥러닝
- Observable
- struct
- 시각화
- decode
- delegate
- SWIFT
- 연산자
- swiftUI
- sigmoid
- grep
- Optional
- ReLU
- barplot
- r
- rxswift
- tapply
- SQL
- cocoapods
- Linux
- NVL
- Python
Archives
목록Tailing Closure (1)
iOS 개발 기록 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cONvf1/btrFoOGgv6V/kuM8MTKuhEz5x2RqJ1wjo1/img.png)
일반적인 함수의 형태는 아래와 같다. func functionName (param1: dataType, param2: dataType) -> dataType { return output } 특정 데이터가 입력되어 함수를 통과하면 데이터가 출력된다. 이 입력된 데이터들을 또 다른 함수를 통과하도록 할 수 있다. import UIKit import Foundation func calculator(n1: Int, n2: Int, operation: (Int, Int) -> Int) -> Int{ return operation(n1, n2) } func add(n1: Int, n2: Int) -> Int{ return n1 + n2 } print(calculator(n1: 2, n2: 3, operation: ..
iOS
2022. 6. 23. 09:00