Skip to content

Commit 9474025

Browse files
committed
Align code
1 parent 4f8ab5c commit 9474025

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/FSharpPlus/Control/Applicative.fs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,9 @@ type Apply =
3737
static member ``<*>`` (struct (f: Result<_,'E> , x: Result<'T,'E> ), _output: Result<'b,'E> , [<Optional>]_mthd: Apply) = Result.apply f x : Result<'U,'E>
3838
static member ``<*>`` (struct (f: Choice<_,'E> , x: Choice<'T,'E> ), _output: Choice<'b,'E> , [<Optional>]_mthd: Apply) = Choice.apply f x : Choice<'U,'E>
3939
static member inline ``<*>`` (struct (KeyValue(a: 'Key, f), KeyValue(b: 'Key, x: 'T)), _output: KeyValuePair<'Key,'U>, [<Optional>]_mthd: Default3) : KeyValuePair<'Key,'U> = KeyValuePair (Plus.Invoke a b, f x)
40-
static member inline ``<*>`` (struct (f: KeyValuePair2<'Key, _>, x: KeyValuePair2<'Key, 'T>), _output: KeyValuePair2<'Key,'U>, [<Optional>]_mthd: Default3) : KeyValuePair2<'Key,'U> =
41-
let a = f.Key
42-
let b = x.Key
43-
let f = f.Value
44-
let x = x.Value
40+
static member inline ``<*>`` (struct (f: KeyValuePair2<_,_>, x: KeyValuePair2<_,'T> ), _output: KeyValuePair2<_,'U> , [<Optional>]_mthd: Default3) : KeyValuePair2<'Key,'U> =
41+
let a, b = f.Key, x.Key
42+
let f, x = f.Value, x.Value
4543
KeyValuePair2 (Plus.Invoke a b, f x)
4644

4745
static member ``<*>`` (struct (f: Map<'Key,_> , x: Map<'Key,'T> ) , _output: Map<'Key,'U> , [<Optional>]_mthd: Apply) : Map<'Key,'U> = Map (seq {
@@ -65,7 +63,7 @@ type Apply =
6563
| true, vx -> dct.Add (k, vf vx)
6664
| _ -> ()
6765
dct :> IDictionary<'Key,'U>
68-
66+
6967
static member ``<*>`` (struct (f: IReadOnlyDictionary<'Key,_>, x: IReadOnlyDictionary<'Key,'T>) , _output: IReadOnlyDictionary<'Key,'U> , [<Optional>]_mthd: Apply) : IReadOnlyDictionary<'Key,'U> =
7068
let dct = Dictionary ()
7169
for KeyValue(k, vf) in f do
@@ -78,7 +76,7 @@ type Apply =
7876
static member ``<*>`` (struct (f: Expr<'T->'U>, x: Expr<'T>), _output: Expr<'U>, [<Optional>]_mthd: Apply) = Expr.Cast<'U> (Expr.Application (f, x))
7977
#endif
8078
static member ``<*>`` (struct (f: ('T->'U) ResizeArray, x: 'T ResizeArray), _output: 'U ResizeArray, [<Optional>]_mthd: Apply) = ResizeArray.apply f x : 'U ResizeArray
81-
79+
8280
static member inline Invoke (f: '``Applicative<'T -> 'U>``) (x: '``Applicative<'T>``) : '``Applicative<'U>`` =
8381
let inline call (mthd : ^M, input1: ^I1, input2: ^I2, output: ^R) =
8482
((^M or ^I1 or ^I2 or ^R) : (static member ``<*>`` : struct (_*_) * _ * _ -> _) (struct (input1, input2)), output, mthd)

0 commit comments

Comments
 (0)