Created
December 29, 2021 17:22
-
-
Save nwillc/9c5e6319e3457b94e38928e19d08cbe7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func colors(colorNames map[string]tcell.Color) string { | |
return genfuncs. | |
Keys(colorNames). | |
Filter(generics.NotBlank). | |
SortBy(generics.LexicalOrder). | |
JoinToString(generics.AToA, "\n ", "\n ", "") | |
} | |
func fonts(names genfuncs.Slice[string]) string { | |
return genfuncs.Map(names, generics.AToi). | |
SortBy(generics.NumericOrder). | |
JoinToString(generics.IToA, "\n ", "\n ", "") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment