๐Concurrency Patterns WorkshopWORKSHOP
1
2
3
4
Step 1
Build a 2-stage pipeline. Write a `generate` function that sends the integers 2, 3, 4, 5 on a channel and closes it, and a `square` function that reads integers, squares them, and sends them on a new channel. In main, wire them together and print all squared values.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)