# What about an \`undefs\` function in \`Base\`?

**URL:** https://discourse.julialang.org/t/what-about-an-undefs-function-in-base/92690
**Category:** General Usage
**Tags:** feature-request
**Created:** [January 9, 2023, 2:18am UTC](https://discourse.julialang.org/t/what-about-an-undefs-function-in-base/92690 "2023-01-09T02:18:50Z")
**Posts on this page:** 1
**Showing post:** 65

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [January 24, 2023, 10:58am UTC](https://discourse.julialang.org/t/what-about-an-undefs-function-in-base/92690/65 "2023-01-24T10:58:38Z")

</div>

Undefs.jl is now registered:

> [@Undefs.jl: Convenience and Experiment](https://discourse.julialang.org/t/undefs-jl-convenience-and-experiment/93451):
>
> Undefs.jl I created a registered package called Undefs.jl that exports three names: undefs(A = Array, T = Float64, dims) = A{T}(undef, dims): a convenience method similar to ones, zeros, trues, and falses. undef!(array::Array, index=1): An experimental method to reset an element to an #undef state. This also works on Base.RefValue. @undef! A[1]: A macro to make the use of the undef! easier. Demonstration of the convenience constructor, undefs julia\> using Undefs julia\> mutable struct Foo …

---

_[View the full topic](https://discourse.julialang.org/t/what-about-an-undefs-function-in-base/92690)._
