# \#chain

**URL:** https://discourse.julialang.org/tag/chain/1178.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Seeking feedback on Chainables before registering it](https://discourse.julialang.org/t/seeking-feedback-on-chainables-before-registering-it/136175)

<div class="topic-metadata">

**Author:** [@TyronCameron](https://discourse.julialang.org/u/TyronCameron)\
**Replies:** 16\
**Last updated:** [March 14, 2026, 10:18am UTC](https://discourse.julialang.org/t/seeking-feedback-on-chainables-before-registering-it/136175 "2026-03-14T10:18:04Z")

</div>

Hi all I think Chain.jl is a phenomenal package. I’ve submitted a package called Chainables.jl to the General registry, and a registry maintainer suggested I bring up the idea here to get feedback and thoughts. The go…

---

## [@chaineach](https://discourse.julialang.org/t/chaineach/134423)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 12\
**Last updated:** [December 9, 2025, 12:10am UTC](https://discourse.julialang.org/t/chaineach/134423 "2025-12-09T00:10:13Z")

</div>

I’d like a macro @chaineach such that: @chaineach x begin #commands end is equivalent to map( y -\> @chain y begin #commands end, collect(x) ) Example usage is a @chain block processing a DataFrame and creati…

---

## [Chained keyword assignment in function call leaks scope](https://discourse.julialang.org/t/chained-keyword-assignment-in-function-call-leaks-scope/126531)

<div class="topic-metadata">

**Author:** [@ncxst](https://discourse.julialang.org/u/ncxst)\
**Replies:** 1\
**Last updated:** [March 4, 2025, 3:29pm UTC](https://discourse.julialang.org/t/chained-keyword-assignment-in-function-call-leaks-scope/126531 "2025-03-04T15:29:08Z")

</div>

I tried to do a chained keyword assignment in a function call and got the following behavior julia\> function params(;kwargs...) for kw in kwargs println(kw) end end params (ge…

---

## [Macros and piping](https://discourse.julialang.org/t/macros-and-piping/116130)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 14\
**Last updated:** [June 25, 2024, 11:58am UTC](https://discourse.julialang.org/t/macros-and-piping/116130 "2024-06-25T11:58:57Z")

</div>

How come these two examples don’t work. using Pipe, Chain macro test(x) x end @pipe 1 |\> @test(\_) #works @pipe 1 |\> @test \_ #works @pipe 1 |\> @test #doesn't work @chain 1 begin @test(\_) …

---

## [Chain.jl error](https://discourse.julialang.org/t/chain-jl-error/75970)

<div class="topic-metadata">

**Author:** [@Rahul](https://discourse.julialang.org/u/Rahul)\
**Replies:** 4\
**Last updated:** [January 16, 2024, 8:11pm UTC](https://discourse.julialang.org/t/chain-jl-error/75970 "2024-01-16T20:11:42Z")

</div>

@chain throws an error that I cannot understand. Please help. Thanks! Code and error below: julia\> a = DataFrame(x=1:10, y=2:11) 10×2 DataFrame Row │ x y │ Int64 Int64 ─────┼────────────── 1 │ …

---

## [Printing loglikelihood values](https://discourse.julialang.org/t/printing-loglikelihood-values/99384)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 3\
**Last updated:** [May 26, 2023, 8:23am UTC](https://discourse.julialang.org/t/printing-loglikelihood-values/99384 "2023-05-26T08:23:26Z")

</div>

Can we print likelihood values while sampling by NUTS() in turing.jl? Is there any way ? So, we don’t sit blind during run and have some info.

---

## [Recording an MCMC Chain](https://discourse.julialang.org/t/recording-an-mcmc-chain/90243)

<div class="topic-metadata">

**Author:** [@clinton](https://discourse.julialang.org/u/clinton)\
**Replies:** 9\
**Last updated:** [November 14, 2022, 9:35pm UTC](https://discourse.julialang.org/t/recording-an-mcmc-chain/90243 "2022-11-14T21:35:15Z")

</div>

I’ve written my own MCMC code. MCMCChains provides some helper functions wrt working with already completed chains. As I iterate through the chain, what is the best way to store the each pass? E.g., if I complete non-bu…

---

## [Broadcasting and piping](https://discourse.julialang.org/t/broadcasting-and-piping/89542)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [October 31, 2022, 11:22pm UTC](https://discourse.julialang.org/t/broadcasting-and-piping/89542 "2022-10-31T23:22:25Z")

</div>

The basic pipe operator allows for broacasting e.g. 1:5 .|\> exp As far as I know @chain and Lazy @\> don’t support this. You can get around this by defining. ⬅map(a,b) = map(b,a) and writing @\> 1:5 …
