Skip to content

Commit 3c4eead

Browse files
authored
Preserve order of predicates
Fixes https://bugs.swift.org/browse/SR-11841
1 parent d2e1f09 commit 3c4eead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Filter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ extension LazyFilterSequence {
339339
_ isIncluded: @escaping (Element) -> Bool
340340
) -> LazyFilterSequence<Base> {
341341
return LazyFilterSequence(_base: _base) {
342-
isIncluded($0) && self._predicate($0)
342+
self._predicate($0) && isIncluded($0)
343343
}
344344
}
345345
}

0 commit comments

Comments
 (0)