In this video, we will implement OurFilter() function just like Kotlin's filter() function in its standard library. It is going to be a fantastic experience. First, we will understand the filter() function; then, we will implement OurFilter() and learn Generics and Kotlin Extension functions. In the end, we will see how the OurFilterTo() function can improve, in some cases, time and space complexity from 2n to n and n to constant, respectively.
#kotlin #kotlinandroid #opensource
Негізгі бет ourFilter implementation inspired by the Kotlin filter (5-10 mins)
Пікірлер