15 lines
253 B
Mojo
Generated
15 lines
253 B
Mojo
Generated
struct Frame(Copyable):
|
|
var a: Int
|
|
var b: Int
|
|
var c: Int
|
|
|
|
def __init__(out self, a: Int, b: Int, c: Int):
|
|
self.a = a
|
|
self.b = b
|
|
self.c = c
|
|
|
|
|
|
def main():
|
|
var f = Frame(10, 20, 30)
|
|
print("channel 1:", f[1])
|