erg/crates/erg_compiler/lib/core.d/Set!.d.er
2024-03-03 16:22:14 +09:00

15 lines
262 B
Python

.Set!: ClassType
.Set!.
'''erg
s = !{}
s2 = s.copy()
s.add!(1)
assert s2 == {}
'''
copy: (self: Ref Set!) -> Set!
'''erg
s = !{}
s.add!(1)
assert s == {1}
'''
add!: |T|(self: RefMut(Set!(T)), x: T) => NoneType