bahaghari/lib: improve generateGlyphSet

This commit is contained in:
Gabriel Arazas 2024-02-28 10:44:16 +08:00
parent 103988226b
commit f21b9367c9
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -69,10 +69,10 @@
let let
glyphsList' = glyphsList' =
pkgs.lib.lists.imap0 pkgs.lib.lists.imap0
(i: glyph: { "${builtins.toString i}" = glyph; }) (i: glyph: pkgs.lib.nameValuePair (builtins.toString i) glyph)
glyphsList; glyphsList;
in in
pkgs.lib.foldl (acc: glyph: acc // glyph) { } glyphsList'; pkgs.lib.listToAttrs glyphsList';
/* Generates a conversion table for a sorted list of glyphs to its decimal /* Generates a conversion table for a sorted list of glyphs to its decimal
number. Suitable for creating your own conversion function. Accepts the number. Suitable for creating your own conversion function. Accepts the