Fix filterNotNull and mapNotNull for streams.

This commit is contained in:
Ilya Ryzhenkov
2014-04-18 18:09:00 +04:00
committed by Andrey Breslav
parent 118126c744
commit 87745c05ae
4 changed files with 4 additions and 4 deletions
@@ -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)
"""
}
}