How to undef a vector element

Note that this is an implementation detail and only happens to work in this exact case. Other cases may not have a “clean” C_NULL as #undef or may be tracked differently. There may not even be an #undef value.

Returning an array element to #undef will never be a well defined operation in julia.

4 Likes