Skip to content

Commit

Permalink
Administrative fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CodaFi committed Nov 3, 2017
1 parent d3e2b49 commit 5801206
Show file tree
Hide file tree
Showing 49 changed files with 747 additions and 694 deletions.
14 changes: 7 additions & 7 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[submodule "Carthage/Checkouts/Swiftx"]
path = Carthage/Checkouts/Swiftx
url = https://github.com/typelift/Swiftx.git
[submodule "Carthage/Checkouts/SwiftCheck"]
path = Carthage/Checkouts/SwiftCheck
url = https://github.com/typelift/SwiftCheck.git
[submodule "Carthage/Checkouts/Operadics"]
path = Carthage/Checkouts/Operadics
url = https://github.com/typelift/Operadics.git
path = Carthage/Checkouts/Swiftx
[submodule "Carthage/Checkouts/FileCheck"]
path = Carthage/Checkouts/FileCheck
url = https://github.com/trill-lang/FileCheck.git
[submodule "Carthage/Checkouts/Operadics"]
path = Carthage/Checkouts/Operadics
url = https://github.com/typelift/Operadics.git
[submodule "Carthage/Checkouts/SwiftCheck"]
path = Carthage/Checkouts/SwiftCheck
url = https://github.com/typelift/SwiftCheck.git
6 changes: 3 additions & 3 deletions Sources/Swiftz/ArrayExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2014 Maxwell Swadling. All rights reserved.
//

#if !XCODE_BUILD
#if SWIFT_PACKAGE
import Operadics
import Swiftx
#endif
Expand Down Expand Up @@ -128,7 +128,7 @@ extension Array /*: MonadZip*/ {
}

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

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

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

public func mapMaybe<U>(_ f : (Element) -> Optional<U>) -> [U] {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Swiftz/Arrow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2015-2016 TypeLift. All rights reserved.
//

#if !XCODE_BUILD
#if SWIFT_PACKAGE
import Operadics
import Swiftx
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/Swiftz/ArrowExt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2015 TypeLift. All rights reserved.
//

#if !XCODE_BUILD
#if SWIFT_PACKAGE
import Operadics
import Swiftx
#endif
Expand Down
4 changes: 2 additions & 2 deletions Sources/Swiftz/Bifunctor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2014-2016 Maxwell Swadling. All rights reserved.
//

#if !XCODE_BUILD
#if SWIFT_PACKAGE
import Swiftx
#endif

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

public func rightMap(g : @escaping (R) -> D) -> (L, D) {
public func rightMap(_ g : @escaping (R) -> D) -> (L, D) {
return self.bimap(identity, g)
}
}
2 changes: 1 addition & 1 deletion Sources/Swiftz/Category.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright (c) 2015-2016 TypeLift. All rights reserved.
//

#if !XCODE_BUILD
#if SWIFT_PACKAGE
import Operadics
#endif

Expand Down
2 changes: 1 addition & 1 deletion Sources/Swiftz/Const.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2015-2016 TypeLift. All rights reserved.
//

#if !XCODE_BUILD
#if SWIFT_PACKAGE
import Swiftx
#endif

Expand Down
Loading

0 comments on commit 5801206

Please sign in to comment.