7 lines
222 B
Nix
7 lines
222 B
Nix
{ lib, ... }: {
|
|
capitalize = text:
|
|
let chars = lib.strings.stringToCharacters text;
|
|
in lib.strings.concatStrings
|
|
([ (lib.strings.toUpper (builtins.elemAt chars 0)) ]
|
|
++ (lib.lists.drop 1 chars));
|
|
}
|