mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
d6d5885c15
This is a generalisation of replaceChars in Nixpkgs.
8 lines
238 B
Nix
8 lines
238 B
Nix
with builtins;
|
|
|
|
[ (replaceStrings ["o"] ["a"] "foobar")
|
|
(replaceStrings ["o"] [""] "foobar")
|
|
(replaceStrings ["oo"] ["u"] "foobar")
|
|
(replaceStrings ["oo" "a"] ["a" "oo"] "foobar")
|
|
(replaceStrings ["oo" "oo"] ["u" "i"] "foobar")
|
|
]
|