Fix bytecode bool conversion and object equality

This commit is contained in:
sergeych committed 2026-01-28 16:45:29 +03:00
1 parent 7b3d92beb9
commit 63bcb91504
6 files changed
+197 -81

No files matched your search

+1 -5
View File
@@ -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. */