11using System . Collections . Generic ;
22using System . Reactive . Linq ;
33using MorleyDev . Reactive . Monad . Extensions ;
4+ using System ;
45
56namespace MorleyDev . Reactive . Monad . Extensions
67{
@@ -13,7 +14,7 @@ public static class IOExtensionsNestedEnumerable
1314 /// <typeparam name="U"></typeparam>
1415 /// <param name="self"></param>
1516 /// <returns></returns>
16- public static ManyIO < T > Merge < T , U > ( this IO < U > self ) where U : IEnumerable < T > => self . Select ( s => s . ToObservable ( ) ) . Merge ( ) . ToManyIO ( ) ;
17+ public static ManyIO < T > Merge < T > ( this IO < IEnumerable < T > > self ) => self . Select ( s => s . ToObservable ( ) ) . Merge ( ) . ToManyIO ( ) ;
1718
1819 /// <summary>
1920 /// Merge an IO of an Enumerable into a ManyIO
@@ -22,20 +23,19 @@ public static class IOExtensionsNestedEnumerable
2223 /// <typeparam name="U"></typeparam>
2324 /// <param name="self"></param>
2425 /// <returns></returns>
25- public static ManyIO < T > Concat < T , U > ( this IO < U > self ) where U : IEnumerable < T > => self . Select ( s => s . ToObservable ( ) ) . Concat ( ) . ToManyIO ( ) ;
26+ public static ManyIO < T > Concat < T > ( this IO < IEnumerable < T > > self ) => self . Select ( s => s . ToObservable ( ) ) . Concat ( ) . ToManyIO ( ) ;
2627 }
2728
2829 public static class IOExtensionsNestedObservable
2930 {
30-
3131 /// <summary>
3232 /// Merge an IO of an Enumerable into a ManyIO
3333 /// </summary>
3434 /// <typeparam name="T"></typeparam>
3535 /// <typeparam name="U"></typeparam>
3636 /// <param name="self"></param>
3737 /// <returns></returns>
38- public static ManyIO < T > Merge < T , U > ( this IO < U > self ) where U : IObservable < T > => self . SelectMany ( s => s ) . ToManyIO ( ) ;
38+ public static ManyIO < T > Merge < T > ( this IO < IObservable < T > > self ) => self . SelectMany ( s => s ) . ToManyIO ( ) ;
3939
4040 /// <summary>
4141 /// Merge an IO of an Enumerable into a ManyIO
@@ -44,6 +44,6 @@ public static class IOExtensionsNestedObservable
4444 /// <typeparam name="U"></typeparam>
4545 /// <param name="self"></param>
4646 /// <returns></returns>
47- public static ManyIO < T > Concat < T , U > ( this IO < U > self ) where U : IObservable < T > => self . Select ( s => ( IObservable < T > ) s ) . Concat ( ) . ToManyIO ( ) ;
47+ public static ManyIO < T > Concat < T > ( this IO < IObservable < T > > self ) => self . Select ( s => ( IObservable < T > ) s ) . Concat ( ) . ToManyIO ( ) ;
4848 }
4949}
0 commit comments