Lindenii Project Forge
Warning: Due to various recent migrations, viewing non-HEAD refs may be broken.
/ds/map/slice_basic/new.ha (raw)
// SPDX-License-Identifier: MPL-2.0
// Creates a new [[map]].
export fn new() (*map | nomem) = {
let m = alloc(map {
vt = &_vt,
items = [],
})?;
return m;
};