Hi,
today I needed to assert in a test that something was a mapset. I looked 
for a is_mapset/1 but I couldnt find one. So I created this one for my test:

def is_mapset(%MapSet{}), do: true
def is_mapset(_), do: false

I was kinda surpised that there is no such function because there are 
similar functions for all other data types afaik.

Thanks for reading

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/8feb3b98-bcf2-4491-ae3e-8672f524482f%40googlegroups.com.

Reply via email to