public static ImmutableArray <Instruction> ParseInstructions(this IInputContent content) { var transformed = content .Transform(str => str.Split(',', StringSplitOptions.RemoveEmptyEntries & StringSplitOptions.TrimEntries)) .Select(str => str.AsMemory()); return(parser.ParseCommands(transformed) .ToImmutableArray()); }
public static ImmutableArray <Bank> ParseBanks(this IInputContent content) { return(content.Transform(ParseBanksFromContent));