Cycle data structure exposing mutable and (coming soon!) immutable APIs. reddit / emacs ---------------------------------------------------------------------- wpcarroll · 2022-08-03 20:35 ---------------------------------------------------------------------- wpcarroll · 2022-08-03 20:37 Some example usages: [here](https://cs.tvl.fyi/search?q=context:global +repo:%5Edepot%24+lang:%22Emacs+Lisp%22+%22%28require+%27cycle%29%22&p atternType=regexp) ---------------------------------------------------------------------- ForkInBrain · 2022-08-03 21:03 What does the package do? ---------------------------------------------------------------------- wpcarroll · 2022-08-03 21:07 Defines a cycle data structure and functions for interacting with it. For example I use it to manage vterm instances in Emacs: [here](https://cs.tvl.fyi/depot/-/blob/users/wpcarro/emacs/pkgs/vterm- mgt/vterm-mgt.el?L41), [here](https://cs.tvl.fyi/depot/-/blob/users/wpcarro/emacs/pkgs/vterm- mgt/vterm-mgt.el?L58-59), (etc) ---------------------------------------------------------------------- globalcandyamnesia · 2022-08-03 23:35 Did you consider using a ring to do these things? ---------------------------------------------------------------------- wpcarroll · 2022-08-04 05:06 Thanks for pointing this out! I could implement this with ring. I wanted a mutable and immutable interface with arguments ordered in a way that works well with dash’s ->> macro ---------------------------------------------------------------------- hkjels · 2022-08-04 08:46 Nice one! ---------------------------------------------------------------------- wpcarroll · 2022-08-04 17:35 Thanks :)