What is the signature for map_entry?

What is the signature for map_entry ?

From the 2025 Q1 Newsletter:

map_entry builtin #

A new builtin to help in cases where you want to lookup if something exists in a map, return a pointer to the value or insert something new + return the final pointer in the map

Here is an example of it being used in the core:strings intern library. This is a call which has to be efficient as it may get called many times.

Easily found in the package index: package builtin - pkg.odin-lang.org

Do note generic signatures are sometimes broken on that site, but you can always click on “source” to see the real thing.

1 Like

Thanks!
Turns out I hadn’t noticed autocurrupt “helping” me by capitalizing it.