Fix filterNotNull and mapNotNull for streams.
This commit is contained in:
committed by
Andrey Breslav
parent
118126c744
commit
87745c05ae
@@ -305,7 +305,7 @@ fun filtering(): List<GenericFunction> {
|
||||
returns(Streams) { "Stream<T>" }
|
||||
body(Streams) {
|
||||
"""
|
||||
return FilteringStream(this, false, { it != null }) as Stream<T>
|
||||
return FilteringStream(this, false, { it == null }) as Stream<T>
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ fun mapping(): List<GenericFunction> {
|
||||
inline(false, Streams)
|
||||
body(Streams) {
|
||||
"""
|
||||
return TransformingStream(FilteringStream(this, false, { it != null }) as Stream<T>, transform)
|
||||
return TransformingStream(FilteringStream(this, false, { it == null }) as Stream<T>, transform)
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user