# \[ANN\] DataPipes.jl 0.3.0

**URL:** https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734
**Category:** Package Announcements
**Tags:** data, piping
**Created:** [May 7, 2021, 5:29pm UTC](https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734 "2021-05-07T17:29:26Z")
**Posts on this page:** 1
**Showing post:** 70

<div class="post-metadata">

### Author: ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)
#### Post date: [November 23, 2022, 10:39am UTC](https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734/70 "2022-11-23T10:39:37Z")

</div>

Let me announce another release of `DataPipes`, `v0.3.5` - already registered in `General`.

The main highlight since the last update is

# Pipe broadcast: `.|>`

Sometimes operations are more natural to write as a `map` call, sometimes as a broadcast. Making this even more convenient, `DataPipes` now supports the broadcasted pipe, `.|>`.

For the regular pipe `|>`, the ` __` placeholder gets replaced with the result of the previous step. Likewise, for the `.|>` broadcasted pipe, `__ ` means a single element of the previous step result.  
When this placeholder is not used, `DataPipes` implicitly appends it to the function arguments, same for `|>` and `.|>`.

Some examples:

```julia-auto
julia> @p "1, 2, 3, 4" |> eachmatch(r"(\d)") .|> __.captures[1]
4-element Vector{SubString{String}}:
 "1"
 "2"
 "3"
 "4"

```

```julia-auto
julia> @p [[1, 2], [3]] .|> __.+ 1
2-element Vector{Vector{Int64}}:
 [2, 3]
 [4]

```

```julia-auto
julia> @p 1:10 |> group(_ % 3) .|> map(_ ^ 2)
3-element Dictionaries.Dictionary{Int64, Vector{Int64}}
 1 │ [1, 16, 49, 100]
 2 │ [4, 25, 64]
 0 │ [9, 36, 81]

```

Especially the last case demonstrates that `.|>` is convenient for processing nested datasets in a single line. Alternatives, such as nested maps, are more noisy for simple one-liner pipes.

---

_[View the full topic](https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734)._
