Fork me on GitHub
#component
<
2017-06-06
>
sveri16:06:57

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

sveri16:06:23

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

seancorfield16:06:51

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

sveri16:06:46

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

seancorfield16:06:02

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.