ZIO and the Power of IOs (Part 2) | Video: Free Introduction to Functional Programming Course
Briefly

First, we know that we eventually want to use the Scala println function to print some text. This is a function that takes a String input parameter, returns some sort of ZIO type, and uses println in its body.
Because println prints to STDOUT, it has the Unit return type, and because that's the final value of the function, it becomes the function's 'success' value, and is used as the third ZIO parameter.
Read at Alvinalexander
[
]
[
|
]