Skip to content

AssociationQ

AssociationQ(expr)

returns True if expr is an association, and False otherwise.

Examples

>> AssociationQ(<|ahey->avalue, bkey->bvalue, ckey->cvalue|>)
True
>> AssociationQ(<|a -> 1, b :> 2|>)
True
>> AssociationQ(<|a, b|>)
False

Association, Counts, Keys, KeySort, Lookup, Values

Github