Skip to content

Commit bd9a05a

Browse files
authored
Add default to AnyObject concat (#16)
1 parent 1946d56 commit bd9a05a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Overture/Concat.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public func concat<A>(
8787
/// - Note: This function is commonly seen in operator form as `<>`.
8888
public func concat<A: AnyObject>(
8989
_ fs: ((A) -> Void)...,
90-
and fz: @escaping (_ a: A) -> Void
90+
and fz: @escaping (_ a: A) -> Void = { _ in }
9191
)
9292
-> (A) -> Void {
9393

@@ -107,7 +107,7 @@ public func concat<A: AnyObject>(
107107
/// - Note: This function is commonly seen in operator form as `<>`.
108108
public func concat<A: AnyObject>(
109109
_ fs: ((A) throws -> Void)...,
110-
and fz: @escaping (_ a: A) throws -> Void
110+
and fz: @escaping (_ a: A) throws -> Void = { _ in }
111111
)
112112
-> (A) throws -> Void {
113113

0 commit comments

Comments
 (0)