public static class Extensions
{
public static IEnumerable<U> Map<T, U>(this IEnumerable<T> source, Func<T, U> f)
{
foreach (var e in source)
{
yield return f(e);
}
}
}
public static class Extensions
{
public static IEnumerable<U> Map<T, U>(this IEnumerable<T> source, Func<T, U> f)
{
foreach (var e in source)
{
yield return f(e);
}
}
}
Comments