예제 #1
0
 /// <summary>
 /// Equivalent to <see cref="IFunctor{TSource}.Map{TResult}(Func{TSource, TResult})"/>, but restricted to <see cref="FuncList{T}"/>. Offers LINQ query support with one <c>from</c>-clause.
 /// </summary>
 /// <typeparam name="TSource">The type of the source's value.</typeparam>
 /// <typeparam name="TResult">The type of the result's value.</typeparam>
 /// <param name="source">The source.</param>
 /// <param name="f">The function to apply.</param>
 public static FuncList <TResult> Select <TSource, TResult>(this FuncList <TSource> source, Func <TSource, TResult> f)
 => (FuncList <TResult>)source.Map(f);