# In Pipe.@pipe, |\> followed by .|\> Gives an error

**URL:** <https://discourse.julialang.org/t/in-pipe-pipe-followed-by-gives-an-error/47174>\
**Category:** General Usage\
**Tags:** piping\
**Created:** [September 24, 2020, 3:49am UTC](https://discourse.julialang.org/t/in-pipe-pipe-followed-by-gives-an-error/47174 "2020-09-24T03:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [January 8, 2025, 9:04pm UTC](https://discourse.julialang.org/t/in-pipe-pipe-followed-by-gives-an-error/47174/7 "2025-01-08T21:04:09Z")

</div>

This thread is from 4.5 years ago, the landscape was quite different back then 🙂  
With [DataPipes.jl](https://discourse.julialang.org/t/ann-datapipes-jl-0-3-0/60734), one can write the original example from the first post basically without any changes, and continue using `.|>`:

```julia
julia> @p 2 |> __.+ (1:3) .|>__^2
3-element Vector{Int64}:
  9
 16
 25

```

> **or use \`map\` as you suggest**
>
> ```julia
> julia> @p 2 |> __.+ (1:3) |> map(_^2)
> 3-element Vector{Int64}:
> 9
> 16
> 25
> 
> ```

---

_[View the full topic](https://discourse.julialang.org/t/in-pipe-pipe-followed-by-gives-an-error/47174)._
