mirror of
https://github.com/erg-lang/erg.git
synced 2025-12-23 05:36:48 +00:00
16 lines
316 B
Python
16 lines
316 B
Python
D = Class { Int: [Str; _] }
|
|
_ = D.new {:}
|
|
_ = D.new {1: ["a"]}
|
|
|
|
D! = Class Dict! { Int: [Str; _] }
|
|
_ = D!.new !{:}
|
|
_ = D!.new !{1: ["a"]}
|
|
|
|
D2 = Class { Str: List(Int) }
|
|
_ = D2.new { "a": [1] }
|
|
|
|
D3 = Class { Str: List!(Int) }
|
|
_ = D3.new { "a": ![1] }
|
|
|
|
D4! = Class Dict! { Str: List!(Int) }
|
|
_ = D4!.new !{ "a": ![1] }
|