# Add fill method accepting constructor function

**URL:** https://discourse.julialang.org/t/add-fill-method-accepting-constructor-function/33424
**Category:** General Usage
**Created:** [January 15, 2020, 11:22pm UTC](https://discourse.julialang.org/t/add-fill-method-accepting-constructor-function/33424 "2020-01-15T23:22:02Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![Vasily\_Pisarev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vasily_pisarev/32/7929_2.png) [@Vasily\_Pisarev](https://discourse.julialang.org/u/Vasily_Pisarev)
#### Post date: [January 16, 2020, 2:08pm UTC](https://discourse.julialang.org/t/add-fill-method-accepting-constructor-function/33424/10 "2020-01-16T14:08:35Z")

</div>

Ah, my bad, only looked at functions with no captured variables.

Then, I’d better say “an idea of array of functions may seem contrived, but in Julia it’s not uncommon to create entities that may be viewed as both function and data objects”.

---

_[View the full topic](https://discourse.julialang.org/t/add-fill-method-accepting-constructor-function/33424)._
