Skip to content

Commit

Permalink
Consistent syntax
Browse files Browse the repository at this point in the history
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com>
  • Loading branch information
mdznr and xwu committed Sep 29, 2021
1 parent 9ac7a20 commit a254f37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Algorithms/Partition.swift
Original file line number Diff line number Diff line change
@@ -241,8 +241,8 @@ extension Sequence {
public func partitioned(
_ belongsInSecondCollection: (Element) throws -> Bool
) rethrows -> ([Element], [Element]) {
var lhs = Array<Element>()
var rhs = Array<Element>()
var lhs = [Element]()
var rhs = [Element]()

for element in self {
if try belongsInSecondCollection(element) {

0 comments on commit a254f37

Please sign in to comment.