He-Pin commented on code in PR #1937:
URL: https://github.com/apache/pekko/pull/1937#discussion_r2189823959


##########
docs/src/test/java/jdocs/stream/operators/SourceOrFlow.java:
##########
@@ -467,6 +467,32 @@ void groupedWeightedExample() {
     // #groupedWeighted
   }
 
+  void groupedAdjacentByExample() {
+    // #groupedAdjacentBy
+    Source.from(Arrays.asList("Hello", "Hi", "Greetings", "Hey"))
+        .groupedAdjacentBy(str -> str.charAt(0))
+        .runForeach(System.out::println, system);
+    // prints:
+    // [Hello, Hi]
+    // [Greetings]
+    // [Hey]

Review Comment:
   This operator works like the fs2, but use `Seq` instead of `(Key, Seq)`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to