Skip to content

Instantly share code, notes, and snippets.

@fitomad fitomad/for_casting.swift Secret
Created Dec 21, 2018

Embed
What would you like to do?
let objects: [Any] = [ "Esto", 12, "Es", "Un", 98.7, "String" ]
for case let object as String in objects
{
print(object)
}
/**
Esto
Es
Un
String
*/
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.