I have an array of struct, the struct contains 5 elements, I want to get all values in the array where one element is equal to a certain value
Then I have an array of the above struct like so,
I want to print all elements in parr where parr.station equal to certain value
struct allproducts {
let sendtime : String
let max_value : String
let station : String
let product : String
let availability : String
}
var parr = [allproducts]()