- Today
- Total
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- struct
- ReLU
- 명령어
- NVL
- grep
- scheduledTimer
- 연산자
- trunc
- Linux
- ios
- rxswift
- MVC
- cocoapods
- tapply
- substr
- 시각화
- Optional
- SQL
- Upper
- SWIFT
- barplot
- decode
- r
- Observable
- delegate
- sigmoid
- swiftUI
- 딥러닝
- Python
- deeplearning
목록Immutable (2)
iOS 개발 기록 블로그
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/3SmN2/btrKHcH98y6/KJ8N6KH72Lrg0GyFaDdR51/img.png)
Mastering RxSwift for iOS Reactive Programming for Developers Reactive Programming Using Swift Programming Language www.udemy.com 새로운 Udemy 강의를 시작했고 (또 다른 강의지옥에 빠졌다) Functional Programming. 즉, 함수형 프로그램에 대해 정리하며 시작한다. Functional Programming Immutability: 어떤 것으로도 바꿀 수 없는 것 (불변의) var 변수는 변화가 가능하고 특정 함수가 전역 변수로 만들어진 var 변수를 변화하게 하는 것은 Functional Programming이 아니라고 강사는 설명한다. 함수형 프로그래밍(Functional)에서는 이..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cuBKld/btrC8l6jYjN/MgOLxDZejj4NcHShxtSHf0/img.png)
Struct vs Class struct는 properties 값을 주지 않아도 된다. 그러나 class는 init을 해줘야 한다. 코드 class Enemy { // properties var health: Int var damage: Int init(health: Int, damage: Int) { self.health= health self.damage= damage } // functions (methods) func move() { print("Walk forwards.") } func attack() { print("Land a hit, does \(damage)damage.") } } 이렇게 init을 해주면 된다. 그럼 Enemy 클래스에 takeDamage라는 함수를 만들어보자. clas..