Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct AccountBalance: Decodable {
- let balance: Double
- let currency: String
- init(balance: Double, currency: String ) {
- self.currency = currency
- self.balance = balance
- }
- enum CodingKeys: String, CodingKey {
- case currency = "Currency"
- case balance = "Balance"
- }
- let result = zip(accountBalance, getsSaved).enumerate().filter() {
- $1.0 == $1.1
- }.map{$0.0}
- Closure tuple parameter '(offset: Int, element: (AccountBalance, AccountBalance))' does not support destructuring with implicit parameters
Add Comment
Please, Sign In to add comment