Write a function named filterLongStrings that takes a list of strings as input and returns a new list containing only the strings that have a length greater than or equal to a given length.
Advanced lambda expressions
Filter long strings
Report a typo
Write a program in Kotlin
class Solution {
fun filterLongStrings(strings: List<String>, length: Int): List<String> {
// Your code here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.