mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
fix: unintended behavior for collections
This commit is contained in:
parent
daf01f3cf2
commit
7d7849b493
9 changed files with 66 additions and 17 deletions
10
crates/erg_compiler/lib/std.d/Set.d.er
Normal file
10
crates/erg_compiler/lib/std.d/Set.d.er
Normal file
|
@ -0,0 +1,10 @@
|
|||
.Set: ClassType
|
||||
.Set.
|
||||
copy: |T|(self: .Set(T)) -> .Set(T)
|
||||
differece: |T|(self: .Set(T), other: .Set(T)) -> .Set(T)
|
||||
intersection: |T|(self: .Set(T), other: .Set(T)) -> .Set(T)
|
||||
isdisjoint: |T|(self: .Set(T), other: .Set(T)) -> Bool
|
||||
issubset: |T|(self: .Set(T), other: .Set(T)) -> Bool
|
||||
issuperset: |T|(self: .Set(T), other: .Set(T)) -> Bool
|
||||
symmetric_difference: |T|(self: .Set(T), other: .Set(T)) -> .Set(T)
|
||||
union: |T|(self: .Set(T), other: .Set(T)) -> .Set(T)
|
Loading…
Add table
Add a link
Reference in a new issue