class ca{
}
var library = [
1,
"a",
ca()
]
for item in library{
if item is ca{
println("\(item) is ca");
}
else if item is Int{
println("\(item) is Int");
}
}
class ca{
}
var library = [
1,
"a",
ca()
]
for item in library{
if item is ca{
println("\(item) is ca");
}
else if item is Int{
println("\(item) is Int");
}
}