2024-07-11 09:41:48 +01:00
|
|
|
lib: string:
|
2024-07-30 15:06:34 +01:00
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
chars =
|
|
|
|
let
|
|
|
|
lc = strings.splitString "" string;
|
|
|
|
in
|
|
|
|
(lists.sublist 1 (lists.length lc - 2) lc);
|
|
|
|
in
|
|
|
|
(strings.concatStringsSep "" (
|
|
|
|
(lists.singleton (strings.toUpper (lists.elemAt chars 0)))
|
|
|
|
++ (lists.sublist 1 (lists.length chars) chars)
|
|
|
|
))
|