# Discussion: How much to pipeline

**URL:** <https://discourse.elm-lang.org/t/discussion-how-much-to-pipeline/6305>\
**Category:** Request Feedback\
**Created:** [September 25, 2020, 3:55pm UTC](https://discourse.elm-lang.org/t/discussion-how-much-to-pipeline/6305 "2020-09-25T15:55:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![lydell](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/lydell/32/178_2.png) [@lydell](https://discourse.elm-lang.org/u/lydell)\
**Post date:** [September 27, 2020, 9:00am UTC](https://discourse.elm-lang.org/t/discussion-how-much-to-pipeline/6305/7 "2020-09-27T09:00:38Z")

</div>

Another thing to think about … do you pipeline the first call in a chain?

Do you use `|>` only to avoid parens:

```auto
Dict.get "content-length" metadata.headers
    |> Maybe.andThen String.toInt
    |> Result.fromMaybe (BadHeader "Content-Length header not found or invalid")

```

Or do you go “all the way”?

```auto
metadata.headers
    |> Dict.get "content-length"
    |> Maybe.andThen String.toInt
    |> Result.fromMaybe (BadHeader "Content-Length header not found or invalid")

```

---

_[View the full topic](https://discourse.elm-lang.org/t/discussion-how-much-to-pipeline/6305)._
