Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement