oriches_Xxx_Markets_Interview_OrderBook/Xxx.Markets.Interview.OrderBook/Extensions/EnumerableExtensions.cs
using System;
using System.Collections.Generic;

namespace Xxx.Markets.Interview.OrderBook.Extensions;

public static class EnumerableExtensions
{
    public static IEnumerable<T> ForEach<T>(this IEnumerable<T> items, Action<T> action)
    {
        foreach (var item in items)
            action(item);

        return items;
    }
}