Re:The C4 model for visualising software architecture
by simon_brown on Saturday September 21, 2019 @04:00AM
(#21034081)
+1 for DFDs ... UML was designed with OO programming languages in mind, and doesn't really fit well for diagramming functional languages (unless you start creating your own custom UML profile, which I don't see many people doing).
Given those properties, I think data-flow diagrams are a natural fit: https://en.wikipedia.org/wiki/Data-flow_diagram