other-lisps

ag 2020-05-20T03:11:25.011200Z

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?

richiardiandrea 2020-05-20T15:58:47.011400Z

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

richiardiandrea 2020-05-20T15:58:47.011400Z

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