mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
docs: update compound.md
This commit is contained in:
parent
caa171342f
commit
b9ff06bb35
3 changed files with 68 additions and 21 deletions
12
crates/erg_compiler/lib/std.d/Dict.d.er
Normal file
12
crates/erg_compiler/lib/std.d/Dict.d.er
Normal file
|
@ -0,0 +1,12 @@
|
|||
.DictItems: ClassType
|
||||
.DictKeys: ClassType
|
||||
.DictValues: ClassType
|
||||
|
||||
.Dict: ClassType
|
||||
.Dict.
|
||||
copy: |D <: .Dict|(self: D) -> D
|
||||
fromkeys: |K, V| (iterable: Iterable K, value: V := NoneType) -> .Dict K, V
|
||||
get: |K, V, Default|(self: .Dict(K, V), key: K, default: Default := NoneType) -> V or Default
|
||||
items: |K, V|(self: .Dict(K, V)) -> .DictItems(K, V)
|
||||
keys: |K, V|(self: .Dict(K, V)) -> .DictKeys(K, V)
|
||||
values: |K, V|(self: .Dict(K, V)) -> .DictValues(K, V)
|
Loading…
Add table
Add a link
Reference in a new issue