From f802eaf7847eb7bd1b8a735dac5166fa8999ea06 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 5 Feb 2023 00:47:55 +0100 Subject: lib.hexchars: init --- lib/genid.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/genid.nix') diff --git a/lib/genid.nix b/lib/genid.nix index 0aed1d35..bfa4a9a0 100644 --- a/lib/genid.nix +++ b/lib/genid.nix @@ -32,6 +32,5 @@ let out = genid; hexint = x: hexvals.${toLower x}; # :: attrset char uint4 - hexvals = listToAttrs (imap (i: c: { name = c; value = i - 1; }) - (stringToCharacters "0123456789abcdef")); + hexvals = listToAttrs (imap (i: c: { name = c; value = i - 1; }) hexchars); in out -- cgit v1.2.3