@@ -52,7 +52,7 @@ fun filtering(): List<GenericFunction> {
|
|||||||
var count = 0
|
var count = 0
|
||||||
val list = ArrayList<T>(n)
|
val list = ArrayList<T>(n)
|
||||||
for (item in this) {
|
for (item in this) {
|
||||||
if (count++ >= n)
|
if (count++ == n)
|
||||||
break
|
break
|
||||||
list.add(item)
|
list.add(item)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user