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 authored Sep 21, 2021
1 parent 4a1ef1a commit d3c7d2a
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
Expand Up @@ -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) {
Expand Down

0 comments on commit d3c7d2a

Please sign in to comment.