The kv Library

The other day I wrote about Wilfred Hughes’ hash table library. In the comments, Noonian Atall remarked that Nic Ferrier also has a key/value library (kv) that’s worth taking a looking at.

Whereas Hughes’ ht library is primarily concerned with hash tables, Ferrier’s kv library deals primarily with alists, although it does provide functions for converting between alists and hash tables. As with the ht library, kv provides some naming consistency and saves writing simple conversion and access functions. If you work a lot with alists, you should take a look at this library and see if it can save you some time and work.

This entry was posted in General and tagged . Bookmark the permalink.
  • NicolasPetton

    Do you know about the map.el library included in Emacs 25.2?
    It handles several data types like alists and hash-tables.

    • NoonianAtall

      Nicolas, thank you for map.el. Is there any chance of adding support for plists to it? Sometimes the lack of a common API for alists and plists is annoying. :)

      • NicolasPetton

        Yes, that was discussed on emacs-devel some time ago, and it's something I plan to do in the future.

        • NoonianAtall

          Thanks, I look forward to that very much.