# String.duplicate - syntax suggestion

**URL:** <https://forum.elixirforum.com/t/string-duplicate-syntax-suggestion/5039>\
**Category:** Discussions\
**Tags:** book-programming-elixir, syntax\
**Created:** [May 11, 2017, 5:02pm UTC](https://forum.elixirforum.com/t/string-duplicate-syntax-suggestion/5039 "2017-05-11T17:02:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [May 11, 2017, 5:07pm UTC](https://forum.elixirforum.com/t/string-duplicate-syntax-suggestion/5039/2 "2017-05-11T17:07:47Z")

</div>

As a native English speaker it makes sense to me, it is used as a verb (where your usage seems to be as a noun):

```elixir
verb
ˈd(y)o͞opləˌkāt/
1.
make or be an exact copy of.
"a unique scent, impossible to duplicate or forget"
synonyms:	copy, photocopy, xerox, reproduce, replicate, reprint, run off; 

```

And since it takes an integer number to be the number of times to duplicate it it makes sense to me, although perhaps that number should default to `2` would make sense.

---

_[View the full topic](https://forum.elixirforum.com/t/string-duplicate-syntax-suggestion/5039)._
