This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import RxSwift | |
extension ObservableType where E == Bool { | |
func negate() -> Observable<Bool> { | |
return map(!) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
indirect enum Tree<Element : Comparable> { | |
case Empty | |
case Node(Element, Tree<Element>, Tree<Element>) | |
init() { | |
self = .Empty | |
} |
NewerOlder