# How does Julia merge several exprs to one expr?

**URL:** <https://discourse.julialang.org/t/how-does-julia-merge-several-exprs-to-one-expr/77498>\
**Category:** New to Julia\
**Created:** [March 7, 2022, 9:45am UTC](https://discourse.julialang.org/t/how-does-julia-merge-several-exprs-to-one-expr/77498 "2022-03-07T09:45:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)\
**Post date:** [March 7, 2022, 10:32pm UTC](https://discourse.julialang.org/t/how-does-julia-merge-several-exprs-to-one-expr/77498/6 "2022-03-07T22:32:12Z")

</div>

Pretty much the same as the answer, but maybe it can add something

> [@Can I concatenate expressions in macro?](https://discourse.julialang.org/t/can-i-concatenate-expressions-in-macro/69220/2):
>
> You could look at how a block of expressions is normally represented and try to rebuild that. For example julia\> a = quote a = 1+1 b = a + 4 end quote #= REPL[16]:2 =# a = 1 + 1 #= REPL[16]:3 =# b = a + 4 end julia\> dump(a) Expr head: Symbol block args: Array{Any}((6,)) 1: LineNumberNode line: Int64 2 file: Symbol REPL[16] 2: Expr head: Symbol = args: Array{Any}((2,)) 1: Symbol a 2: Expr head: Sy…

---

_[View the full topic](https://discourse.julialang.org/t/how-does-julia-merge-several-exprs-to-one-expr/77498)._
