I can not agree to count an arrangement in Swift

0

Good evening I tried to solve it but it does not give me the results, with another exercise similar to me it resulted with this code

let contar = ver.filter({$0 == .buscar}).counter

but this exercise did not leave me. Thanks

    
asked by S.Figueroa 31.07.2018 в 06:00
source

1 answer

1

It does not work for you and you should not compile it. The command to count is not counter, it is count

let contar = ver.filter({$0 == .buscar}).count
    
answered by 31.07.2018 / 06:16
source