using System; using Chernobyl.Extensions; namespace Chernobyl.Generation { /// /// Methods for producing a beat in a pattern. /// public static class Beat { /// /// Installs a method into the pipeline that produces a beat. /// /// The method whose return values is to be replaced when a beat is required. /// The amount of space to put between each value being replaced. /// The method whose return value is to do the replacing. public static Func AddBeat(this Func factory, int distance, Func beatFactory) => factory.SkipReplace(distance, beatFactory); } }