Add progam logic

This commit is contained in:
Andrew Cooper
2022-07-24 22:30:35 +10:00
parent 842f749db5
commit 13e0e260b7
3 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
using System.Text;
namespace Diamond;
internal static class StringBuilderExtensions
{
internal static StringBuilder PadToLength(this StringBuilder builder, int length) =>
builder.Append(' ', length - builder.Length);
}