números positivos consecutivos máximos rápidos
¿Cómo contar los números positivos consecutivos máximos usando cierres?
var numbers = [1,3,4,-1,-2,5,2,-2,-3,-4,5]
//in this case it should be 3
print(numbers.reduce(0, { $1 > 0 ? $0 + 1 : $0 } ))//this counts total positive numbers