Skip to content

Commit 5801206

Browse files
committed
Administrative fixes
1 parent d3e2b49 commit 5801206

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+747
-694
lines changed

.gitmodules

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[submodule "Carthage/Checkouts/Swiftx"]
2-
path = Carthage/Checkouts/Swiftx
32
url = https://github.com/typelift/Swiftx.git
4-
[submodule "Carthage/Checkouts/SwiftCheck"]
5-
path = Carthage/Checkouts/SwiftCheck
6-
url = https://github.com/typelift/SwiftCheck.git
7-
[submodule "Carthage/Checkouts/Operadics"]
8-
path = Carthage/Checkouts/Operadics
9-
url = https://github.com/typelift/Operadics.git
3+
path = Carthage/Checkouts/Swiftx
104
[submodule "Carthage/Checkouts/FileCheck"]
115
path = Carthage/Checkouts/FileCheck
126
url = https://github.com/trill-lang/FileCheck.git
7+
[submodule "Carthage/Checkouts/Operadics"]
8+
path = Carthage/Checkouts/Operadics
9+
url = https://github.com/typelift/Operadics.git
10+
[submodule "Carthage/Checkouts/SwiftCheck"]
11+
path = Carthage/Checkouts/SwiftCheck
12+
url = https://github.com/typelift/SwiftCheck.git

Sources/Swiftz/ArrayExt.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2014 Maxwell Swadling. All rights reserved.
77
//
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Operadics
1111
import Swiftx
1212
#endif
@@ -128,7 +128,7 @@ extension Array /*: MonadZip*/ {
128128
}
129129

130130
public func mzipWith<B, C>(_ other : [B], _ f : @escaping (A) -> (B) -> C) -> [C] {
131-
return self.mzip(other).map { let (a, b) = $0; return uncurry(f)(a, b) }
131+
return self.mzip(other).map { let (a, b) = $0; return uncurry(f)(a, b) }
132132
}
133133

134134
public static func munzip<B>(ftab : [(A, B)]) -> ([A], [B]) {
@@ -221,7 +221,7 @@ extension Array {
221221

222222
/// Maps a function over an array that takes pairs of (index, element) to a different element.
223223
public func mapWithIndex<U>(_ f : (Int, Element) -> U) -> [U] {
224-
return zip((self.startIndex ..< self.endIndex), self).map { let (i, e) = $0; return f(i, e) }
224+
return zip((self.startIndex ..< self.endIndex), self).map { let (i, e) = $0; return f(i, e) }
225225
}
226226

227227
public func mapMaybe<U>(_ f : (Element) -> Optional<U>) -> [U] {

Sources/Swiftz/Arrow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015-2016 TypeLift. All rights reserved.
77
//
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Operadics
1111
import Swiftx
1212
#endif

Sources/Swiftz/ArrowExt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2015 TypeLift. All rights reserved.
77
//
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Operadics
1111
import Swiftx
1212
#endif

Sources/Swiftz/Bifunctor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2014-2016 Maxwell Swadling. All rights reserved.
77
//
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Swiftx
1111
#endif
1212

@@ -66,7 +66,7 @@ public struct TupleBF<L, R> /*: Bifunctor*/ {
6666
return self.bimap(f, identity)
6767
}
6868

69-
public func rightMap(g : @escaping (R) -> D) -> (L, D) {
69+
public func rightMap(_ g : @escaping (R) -> D) -> (L, D) {
7070
return self.bimap(identity, g)
7171
}
7272
}

Sources/Swiftz/Category.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (c) 2015-2016 TypeLift. All rights reserved.
77
//
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Operadics
1111
#endif
1212

Sources/Swiftz/Const.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright © 2015-2016 TypeLift. All rights reserved.
77
//
88

9-
#if !XCODE_BUILD
9+
#if SWIFT_PACKAGE
1010
import Swiftx
1111
#endif
1212

0 commit comments

Comments
 (0)