# Initializing lots of matrices in the same way

**URL:** <https://discourse.julialang.org/t/initializing-lots-of-matrices-in-the-same-way/100500>\
**Category:** General Usage\
**Created:** [June 18, 2023, 3:05am UTC](https://discourse.julialang.org/t/initializing-lots-of-matrices-in-the-same-way/100500 "2023-06-18T03:05:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rocco\_sprmnt21](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rocco_sprmnt21/32/20127_2.png) [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Post date:** [June 18, 2023, 4:21pm UTC](https://discourse.julialang.org/t/initializing-lots-of-matrices-in-the-same-way/100500/7 "2023-06-18T16:21:17Z")

</div>

Your comment brings me back to this other (structurally similar, it seems to me) discussion.

[here](https://discourse.julialang.org/t/unpacking-a-named-tuple-using-field-names-and-slurping/100035/14)

I would think that the macros used to slurp part of a NamedTuple could be adapted to this situation, where rest=() and on the right hand side is a tuple with n repeating values.  
I’d be curious to see what this macro would look like?

---

_[View the full topic](https://discourse.julialang.org/t/initializing-lots-of-matrices-in-the-same-way/100500)._
