add prefix/suffix/surround
This commit is contained in:
parent
c000ede9f7
commit
828701871a
1 changed files with 4 additions and 0 deletions
|
|
@ -30,4 +30,8 @@ in rec {
|
|||
if sufLen <= sLen && suffix == substring (sLen - sufLen) sufLen str
|
||||
then substring 0 (sLen - sufLen) str
|
||||
else str;
|
||||
|
||||
prefix = prefix: str: "${prefix}${str}";
|
||||
suffix = suffix: str: "${str}${suffix}";
|
||||
surround = prefix: suffix: str: "${prefix}${str}${suffix}";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue