Fix bytecode bool conversion and object equality
This commit is contained in:
1 parent
7b3d92beb9
commit
63bcb91504
6 files changed
+197
-81
No files matched your search
@@ -65,11 +65,7 @@ fun Iterable.filterNotNull(): List {
|
||||
/* Skip the first N elements of this iterable. */
|
||||
fun Iterable.drop(n) {
|
||||
var cnt = 0
|
||||
val result = []
|
||||
for( item in this ) {
|
||||
if( cnt++ >= n ) result.add(item)
|
||||
}
|
||||
result
|
||||
filter { cnt++ >= n }
|
||||
}
|
||||
|
||||
/* Return the first element or throw if the iterable is empty. */
|
||||
|
||||
Reference in new issue
Block a user