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 | |
let json = """ | |
{ | |
"results":[ | |
{ | |
"blah":"blah", | |
"nested_object":{ | |
"type":"a", | |
"id":69, |
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
enum Equality<T: Equatable> { | |
case equal(T) | |
case notEqual | |
} | |
func == <T: Equatable>(lhs: T, rhs: T) -> Equality<T> { | |
if lhs == rhs { | |
return .equal(lhs) | |
} else { | |
return .notEqual |
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
// | |
// Usage: | |
// | |
// Facebook: | |
// | |
// 1. Follow this guide (WITHOUT setting up a URL scheme in Xcode): | |
// https://github.com/fullstackreact/react-native-oauth/issues/76#issuecomment-335902057 | |
// | |
// 2. call startFacebookAuthenticationSession(appID:completionHandler:) on a window: | |
// |
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 Combine | |
precedencegroup SinkPrecedence { } | |
precedencegroup FilterPrecedence { | |
associativity: left | |
higherThan: SinkPrecedence | |
} | |
infix operator | : FilterPrecedence |
OlderNewer