Skip to content

Commit ef6cf5f

Browse files
gustywallymathieu
authored andcommitted
Add missing .> and <. operators
1 parent fca8b0d commit ef6cf5f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎src/FSharpPlus/Operators.fs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,18 @@ module Operators =
270270
/// <category index="2">Applicative</category>
271271
let inline map3 (f: 'T->'U->'V->'W) (x: '``ZipApplicative<'T>``) (y: '``ZipApplicative<'U>``) (z: '``ZipApplicative<'V>``) : '``ZipApplicative<'W>`` = Map3.Invoke f x y z
272272

273+
/// <summary>
274+
/// Applies two applicatives left-to-right in a non-sequential way, discarding the value of the first argument.
275+
/// </summary>
276+
/// <category index="2">Applicative</category>
277+
let inline (.>) (x: '``ZipApplicative<'T>``) (y: '``ZipApplicative<'U>``) : '``ZipApplicative<'U>`` = ((fun (_: 'T) (k: 'U) -> k) <!> x : '``ZipApplicative<'U->'U>``) <.> y
278+
279+
/// <summary>
280+
/// Applies two applicatives left-to-right in a non-sequential way, discarding the value of the second argument.
281+
/// </summary>
282+
/// <category index="2">Applicative</category>
283+
let inline (<.) (x: '``ZipApplicative<'U>``) (y: '``ZipApplicative<'T>``) : '``ZipApplicative<'U>`` = ((fun (k: 'U) (_: 'T) -> k ) <!> x : '``ZipApplicative<'T->'U>``) <.> y
284+
273285
/// <summary>
274286
/// Applies 2 lifted arguments to a non-lifted function with pointwise and/or parallel semantics.
275287
/// Operator version of 'map2'.

0 commit comments

Comments
 (0)