An advanced Ethereum/EVM mobile wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
alpha-wallet-ios/AlphaWallet/Extensions/Array.swift

15 lines
237 B

//
// Array.swift
// AlphaWallet
//
// Created by Vladyslav Shepitko on 04.03.2021.
//
import Foundation
func -<T: Equatable>(left: [T], right: [T]) -> [T] {
return left.filter { l in
!right.contains { $0 == l }
}
}