Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ It's important to note that although the code appears similar, the two programs

## Embracing Control Flow

One significant advantage of using `Effect.gen` in conjunction with generators is its capability to employ standard control flow constructs within the generator function. These constructs include `if`/`else`, `for`, `while`, and other branching and looping mechanisms, enhancing your ability to express complex control flow logic in your code.
It is easy to express complex control flow logic with `Effect.gen` because it accepts a generator function and standard control flow constructs such as `if`/`else`, `for`, `while`, and other branching and looping mechanisms can be used inside the generator function.

**Example** (Using Control Flow)

Expand Down