mirror of
https://gitlab.com/mfocko/CodeWars.git
synced 2024-09-08 01:26:57 +02:00
10 lines
249 B
C#
10 lines
249 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
public static class JadenCase
|
|
{
|
|
public static string ToJadenCase(this string phrase)
|
|
{
|
|
return String.Join(" ", phrase.Split(' ').Select(word => word.First().ToString().ToUpper() + word.Substring(1)));
|
|
}
|
|
}
|