Fork me on GitHub
#other-lisps
<
2020-05-20
>
ag03:05:25

Does anyone know if there's something similar to (get-in) in Common Lisp? To access nested slot-values? So I'm having to do something like

(slot-value (slot-value (current-window) 'xwin) 'xlib::id)
In Clojure it would've been (get-in (current-window) [:xwin :xlib/id]) or something like that. Is there anything like that in CL?

richiardiandrea15:05:47

I think you would use a lenses lib for that, but have never tried. A quick Google returned this: https://github.com/sirherrbatka/lense/blob/master/README.md