tvalentyn commented on code in PR #30744:
URL: https://github.com/apache/beam/pull/30744#discussion_r1544797693


##########
website/www/site/content/en/documentation/transforms/python/elementwise/flatmap.md:
##########
@@ -49,7 +49,15 @@ We define a function `split_words` which splits an input 
`str` element using the
 {{< playground_snippet language="py" path="SDK_PYTHON_FlatMapFunction" 
show="flatmap_function" >}}
 {{< /playground >}}
 
-### Example 3: FlatMap with a lambda function
+### Example 3: FlatMap without a function
+
+If you already have a `PCollection` of iterables, you can use `FlatMap` 
without a function.

Review Comment:
   ```suggestion
   A common use case of `FlatMap` is to flatten a `PCollection` of iterables 
into a `PCollection` of elements. To do that, don't specify the function 
argument to `FlatMap`, which uses the identity mapping function.
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to