Skip to content

Commit 5a3a000

Browse files
committed
Add on
1 parent a707ae9 commit 5a3a000

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Operators.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ infix operator |> {
3333
precedence 0
3434
}
3535

36+
/// On | Given a "combining" function and a function that converts arguments to the target of the
37+
/// combiner, returns a function that applies the right hand side to two arguments, then runs both
38+
/// results through the combiner.
39+
infix operator |*| {
40+
associativity left
41+
precedence 100
42+
}
43+
44+
3645
/// MARK: Control.*
3746

3847
/// Fmap | Maps a function over the value encapsulated by a functor.

0 commit comments

Comments
 (0)