This file contains hidden or 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
export default class Stripe { | |
} |
This file contains hidden or 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
//: Playground - noun: a place where people can play | |
import UIKit | |
func createSetWith(enable: Bool, requestList: [[String : Any]]) -> Set<String> { | |
return Set(requestList | |
.filter { ($0["enabled"] as? Bool) == enable } | |
.map { $0["key"] as? String ?? ""}) | |
} |
This file contains hidden or 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 | |
protocol StackType { | |
func example() | |
} | |
struct SimpleStack<T: StackType> { | |
private var list:[T] = [] | |
This file contains hidden or 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 | |
struct Person: DictionaryConvertor { | |
let name: String | |
let job: [Job]? | |
let errors: [String]? | |
} | |
struct Job: DictionaryConvertor { | |
let title: String |