bool is_collection(res::Class cls) { auto const name = cls.name(); return name->isame(s_Vector.get()) || name->isame(s_Map.get()) || name->isame(s_StableMap.get()) || name->isame(s_Set.get()) || name->isame(s_FrozenVector.get()) || name->isame(s_FrozenSet.get()); }
bool is_collection(res::Class cls) { auto const name = cls.name(); return name->isame(s_Vector.get()) || name->isame(s_Map.get()) || name->isame(s_Set.get()) || name->isame(s_Pair.get()) || name->isame(s_ImmVector.get()) || name->isame(s_ImmSet.get()) || name->isame(s_ImmMap.get()); }
bool is_collection(res::Class cls) { auto const name = cls.name(); return collections::isTypeName(name); }