Misc/Moelang.md
... ...
@@ -44,6 +44,13 @@ module Complex
44 44
}
45 45
end
46 46
47
+ cast -;;> Complex(i: Int)
48
+ return Complex {
49
+ re=Float(i),
50
+ im=0.0,
51
+ }
52
+ end
53
+
47 54
operator["+"] -> Complex()
48 55
end
49 56
```
... ...
\ No newline at end of file