I have an array and want to filter its elements based on a defined condition.
// Initialize the Array var a = [1,2,3,4,5,6] // Get only even numbers: X % 2 = 0 a = a.filter { $0 % 2 == 0 } print(a)
* Please let us know about anything: issues/feature request/suggestions......And we'll do our best to get back to you asap! :)
Or just post your issue on iSwift's Official Issue Tracker