Kotlin - Data Types
Given a list of
Any elements, how can you create a new list containing only the String elements using Kotlin?Any elements, how can you create a new list containing only the String elements using Kotlin?filterIsInstance<T>() to filter elements of a specific type.filterIsInstance() returns a list with only String elements.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions