Capitalize in Beef

Published on 18 January 2024 (Updated: 18 January 2024)

Welcome to the Capitalize in Beef page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

using System;

namespace Capitalize;

class Program
{
    public static void Usage()
    {
        Console.WriteLine("Usage: please provide a string");
        Environment.Exit(0);
    }

    public static void Capitalize(StringView str, ref String capitalized)
    {
        capitalized.Set(scope $"{str[0].ToUpper}{str[1...]}");
    }

    public static int Main(String[] args)
    {
        if (args.Count < 1 || args[0].Length == 0)
        {
            Usage();
        }

        String capitalized = scope .();
        Capitalize(args[0], ref capitalized);
        Console.WriteLine(capitalized);
        return 0;
    }
}

Capitalize in Beef was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.