Esempio n. 1
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain <TTarget>(dynamic fn, TTarget list)
 {
     return(Currying.Chain(Delegate(fn), list));
 }
Esempio n. 2
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain(RamdaPlaceholder fn = null, RamdaPlaceholder list = null)
 {
     return(Currying.Chain(fn, list));
 }
Esempio n. 3
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain <TTarget>(RamdaPlaceholder fn, TTarget list)
 {
     return(Currying.Chain(fn, list));
 }
Esempio n. 4
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain <TSource>(dynamic fn, IList <TSource> list)
 {
     return(Currying.Chain(Delegate(fn), list));
 }
Esempio n. 5
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain(dynamic fn, RamdaPlaceholder list = null)
 {
     return(Currying.Chain(Delegate(fn), list));
 }
Esempio n. 6
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain <TSource>(RamdaPlaceholder fn, IList <TSource> list)
 {
     return(Currying.Chain(fn, list));
 }
Esempio n. 7
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain(dynamic fn, dynamic list)
 {
     return(Currying.Chain(Delegate(fn), Delegate(list)));
 }
Esempio n. 8
0
 /// <summary>
 /// `chain` maps a function over a list and concatenates the results. `chain`is also known as `flatMap` in some librariesDispatches to the `chain` method of the second argument, if present,according to the [FantasyLand Chain spec](https://github.com/fantasyland/fantasy-land#chain).
 /// <para />
 /// sig: Chain m => (a -> m b) -> m a -> m b
 /// </summary>
 /// <param name="fn">The function to map with</param>
 /// <param name="list">The list to map over</param>
 /// <returns>The result of flat-mapping `list` with `fn`</returns>
 public static dynamic Chain(RamdaPlaceholder fn, dynamic list)
 {
     return(Currying.Chain(fn, Delegate(list)));
 }