Hello Effects

Minimal Console + seq() demonstration

Why it matters

  • Console handler captures every log emitted from a tiny `seq()` pipeline.
  • `seq()` separates `.do()` side effects from value-producing `.let()` steps.
seq()Console.do().let().return() Console.capture()Exception.tryCatch()
Program
const hello = () =>
  seq()
    .tap(() => Console.op.log("Starting"))
    .let(() => 42)
    .tap((count) => Console.op.log(`Answer: ${count}`))
    .then((count) => ({message: "Hello!", count}))
    .value();

Awaiting execution

Console output, timeline events will render here after you run the program.

Handlers: Console.capture() ยท Exception.tryCatch()