# Duplicate a list n times

**URL:** <https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802>\
**Category:** Packages\
**Created:** [April 20, 2016, 11:36pm UTC](https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802 "2016-04-20T23:36:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimonG](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SimonG](https://forum.dynamobim.com/u/SimonG)\
**Post date:** [April 20, 2016, 11:36pm UTC](https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802/1 "2016-04-20T23:36:53Z")

</div>

Hi all,

I’m a beginner at this so excuse the basic question.

I’m sure there is a very simple solution to this problem, but I have spent hours trying to find it to no avail!

I am simply trying to replicate an input list n times (where n varies) into a single list.

![Lists](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/6/6861634eb383dee1d8623341a0e4b7d5a6591b39.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

I can obviously create what I want using List.Create if I manually input the count (n), but I want it to vary.

&nbsp;

cheers

S

---

<div class="post-metadata">

**Author:** ![Andrew\_Hannell](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrew_hannell/32/103315_2.png) [@Andrew\_Hannell](https://forum.dynamobim.com/u/Andrew_Hannell)\
**Post date:** [April 20, 2016, 11:55pm UTC](https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802/2 "2016-04-20T23:55:00Z")

</div>

like this ?

&nbsp;

 ![20160421 list cycle](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b9aaa91badcc37f9790f9e8504a11560fa3c5cb4.png)

---

<div class="post-metadata">

**Author:** ![SimonG](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SimonG](https://forum.dynamobim.com/u/SimonG)\
**Post date:** [April 21, 2016, 12:57am UTC](https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802/3 "2016-04-21T00:57:17Z")

</div>

Hi Andrew,

&nbsp;

You put me on the right path! That was almost what I wanted, but using list chop I could get there.

 ![Lists2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/b/b16d846323bad5cf54c75bf07e388a469c498860.png)

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

Cheers!

S

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [April 21, 2016, 1:06am UTC](https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802/4 "2016-04-21T01:06:06Z")

</div>

“List.OfRepeatedItem” might be a better fit for you:

![2016-04-21_14-37-48](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/b/b04c137c3cfaf0ce2fe91c25cfc28b7474b9ac90.png)

---

<div class="post-metadata">

**Author:** ![SimonG](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@SimonG](https://forum.dynamobim.com/u/SimonG)\
**Post date:** [April 21, 2016, 2:20am UTC](https://forum.dynamobim.com/t/duplicate-a-list-n-times/3802/5 "2016-04-21T02:20:50Z")

</div>

Even better - thanks Dimitar! Think I looked through and tried every node except that one 😕 Exactly what I needed.
