Chapter 4. Programming Idioms

4.1. Channels
4.2. Lists
4.3. Streams
4.4. Mutable References
4.5. Tables
4.6. Loops
4.7. Parallel Matching
4.8. Fork-join
4.9. Sequential Fork-Join
4.10. Priority Poll
4.11. Parallel Or
4.12. Timeout
4.13. Priority
4.14. Metronome
4.15. Routing
4.16. Fold

In this section we give Orc implementations of some standard idioms from concurrent and functional programming. Despite the austerity of Orc's four combinators, we are able to encode a variety of idioms straightforwardly.