A.OrdMap.sparse-question-mark

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

Returns true if ord_map is sparse; 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.sparse?(ord_map)
false
iex> sparse = A.OrdMap.delete(ord_map, :b)
#A.OrdMap<%{a: "Ant", c: "Cat"}, sparse?: true>
iex> A.OrdMap.sparse?(sparse)
true