Skip to content

Instantly share code, notes, and snippets.

View marcllahona's full-sized avatar
🎯
Focusing

Marc Llahona marcllahona

🎯
Focusing
View GitHub Profile
/*:
Brandon Williams
# Lenses in Swift
*/
/*:
## i.e. Functional getters and setters
import Foundation
enum Either<A,B> {
case left(A)
case right(B)
}
// Works only using Swift 4.1
extension Either: Codable where A: Codable, B: Codable {
enum CodingKeys: CodingKey {
//
// KeyboardObserver.swift
// Product
//
// Created by muukii on 3/17/16.
// Copyright © 2016 eure. All rights reserved.
//
import Foundation
import RxSwift