diff options
Diffstat (limited to 'set.c')
-rw-r--r-- | set.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -61,3 +61,11 @@ void* set_first(Set *s) { void* set_last(Set *s) { return hashmap_last(MAKE_HASHMAP(s)); } + +int set_merge(Set *s, Set *other) { + return hashmap_merge(MAKE_HASHMAP(s), MAKE_HASHMAP(other)); +} + +Set* set_copy(Set *s) { + return MAKE_SET(hashmap_copy(MAKE_HASHMAP(s))); +} |