diff options
Diffstat (limited to 'users/sterni/nix')
-rw-r--r-- | users/sterni/nix/utf8/default.nix | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/users/sterni/nix/utf8/default.nix b/users/sterni/nix/utf8/default.nix index c4a3e8eb03b3..99947c5a8c2c 100644 --- a/users/sterni/nix/utf8/default.nix +++ b/users/sterni/nix/utf8/default.nix @@ -209,23 +209,9 @@ let ) iterResult ); - /* Decodes an UTF-8 string, but doesn't throw on error. - Instead it returns null. - - Type: string -> ( [ integer ] | null) - */ - decodeSafe = s: - let - res = builtins.tryEval (decode s); - in - if res.success - then res.value - else null; - in { inherit decode - decodeSafe step ; } |