A.OrdMap.dense-question-mark

You're seeing just the function dense-question-mark, go back to A.OrdMap module for more information.

Returns true if ord_map is dense; otherwise returns false.

See the section about sparse structures for more information.

Examples

iex> ord_map = A.OrdMap.new(a: "Ant", b: "Bat", c: "Cat")
ord(%{a: "Ant", b: "Bat", c: "Cat"})
iex> A.OrdMap.dense?(ord_map)
true
iex> sparse = A.OrdMap.delete(ord_map, :b)
#A.OrdMap<%{a: "Ant", c: "Cat"}, sparse?: true>
iex> A.OrdMap.dense?(sparse)
false