File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ public void FlattenErrorIsError()
99 }
1010
1111 [ Fact ]
12- public void FlattenSomeNoneIsNone ( )
12+ public void FlattenOkErrorIsError ( )
1313 {
1414 FunctionalAssert . Error ( Result . Ok ( Result < int > . Error ( new Exception ( ) ) ) . Flatten ( ) ) ;
1515 }
1616
1717 [ Fact ]
18- public void FlattenSomeSomeIsSome ( )
18+ public void FlattenOkOkIsOk ( )
1919 {
2020 FunctionalAssert . Ok ( 4711 , Result . Ok ( Result . Ok ( 4711 ) ) . Flatten ( ) ) ;
2121 }
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ namespace Funcky.Monads;
66public static partial class LazyExtensions
77{
88 public static Lazy < T > Flatten < [ DynamicallyAccessedMembers ( PublicParameterlessConstructor ) ] T > ( this Lazy < Lazy < T > > lazy )
9- => new Lazy < T > ( ( ) => lazy . Value . Value ) ;
9+ => Lazy . FromFunc ( ( ) => lazy . Value . Value ) ;
1010}
You can’t perform that action at this time.
0 commit comments