component

sveri 2017-06-06T16:27:57.535668Z

Hi, when I have a system map, is there a way to peek at single components during runtime from the REPL?

sveri 2017-06-06T16:32:23.639341Z

Ok, when using danielsz/system its as easy as: (:component system.repl/system)

seancorfield 2017-06-06T16:36:51.738914Z

@sveri Components are just records so you can walk them just like maps really.

sveri 2017-06-06T16:37:46.759137Z

@seancorfield Thanks, I always forget that and have to look for it again once a year I need it 🙂

seancorfield 2017-06-06T16:41:02.829848Z

The only thing to watch is that Component overrides the default printing mechanism to avoid giant structure dumps so you have to explicitly reach into certain parts of it.