Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/for_condition.swift Secret
Last active Dec 21, 2018

Embed
What would you like to do?
let porcentajes = [ 12.5, 99.5, 12.0, 75.0, 49.9, 51.5 ]
for porcentaje in porcentajes where porcentaje > 50.0
{
print(porcentaje)
}
/**
Los valores iterados son:
99.5
75.0
51.5
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.