# A few block authoring questions

**URL:** https://forum.makecode.com/t/a-few-block-authoring-questions/5763
**Category:** Help
**Created:** [January 26, 2021, 5:13pm UTC](https://forum.makecode.com/t/a-few-block-authoring-questions/5763 "2021-01-26T17:13:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jacob\_c](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jacob_c/32/1532_2.png) [@jacob\_c](https://forum.makecode.com/u/jacob_c)
#### Post date: [January 26, 2021, 5:13pm UTC](https://forum.makecode.com/t/a-few-block-authoring-questions/5763/1 "2021-01-26T17:13:39Z")

</div>

1: Is it possible to define a variadic function (a function you can call with any number of parameters)?

Essentially, I want the UI the array block provides (`+` and `-` to add/remove slots) without requiring embedding an array parameter within my block.

2: When I do use an array as a stand-in for the above functionality, I notice that the default behavior is to create an array with two elements of the same value.

Similar to [this code from @richard’s BlockObject extension](https://github.com/riknoll/blockobject/blob/a3e5cb9b543c6677130f3ca50a26fde7f4ecc729/api.ts#L169-L170), I’m doing

```auto
//% value.shadow="lists_create_with"
//% value.defl=<a reference to my own kind shadow block>

```

But the array starts out with two elements with the same value. Is there a way to influence what the array element values are when specifying `lists_create_with` and a custom `defl` shadow?

---

<div class="post-metadata">

### Author: ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)
#### Post date: [January 26, 2021, 6:32pm UTC](https://forum.makecode.com/t/a-few-block-authoring-questions/5763/2 "2021-01-26T18:32:01Z")

</div>

1. We don’t currently support rest parameters, but it’s one of the things we have listed as ‘maybe someday, just not implemented yet’ on [https://makecode.com/language](https://makecode.com/language) (note there’s a minor typo → ‘reset’ operator)

2. I don’t think we support this currently, though it seems like a good option; here’s where the default values for arrays is implemented for reference: [https://github.com/microsoft/pxt/blob/f75076c74112cfe442ac0dfe0bca2dfecabd1fe3/pxtblocks/blocklyloader.ts#L166](https://github.com/microsoft/pxt/blob/f75076c74112cfe442ac0dfe0bca2dfecabd1fe3/pxtblocks/blocklyloader.ts#L166)
