From 4dfd35fdfb6d0966c1fc24540b322a7ecc85608e Mon Sep 17 00:00:00 2001 From: Jeffrey <106184818+c0d33ngr@users.noreply.github.com> Date: Sat, 1 Feb 2025 14:04:56 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c10f62a31..03f750267 100644 --- a/README.md +++ b/README.md @@ -1294,11 +1294,11 @@ val i: Unit < Any = // Fold over stream elements val j: Int < Any = - a.runFold(0)(_ + _) + a.fold(0)(_ + _) // Process each element with side effects val k: Unit < (IO & Abort[IOException]) = - a.runForeach(Console.printLine(_)) + a.foreach(Console.printLine(_)) ``` Streams can be combined with other effects, allowing for powerful and flexible data processing pipelines: