Arrays
Schema
mabo
struct Sample {
options: [bool; 5] @1,
}1
2
3
4
2
3
4
Languages
rs
struct Sample {
options: [bool; 5],
}1
2
3
2
3
go
type Sample struct {
Options [5]bool
}1
2
3
2
3
kt
data class Sample(
val options: Array<Boolean>,
)1
2
3
2
3
ts
class Sample {
options: boolean[];
constructor(options: boolean[]) {
this.options = options;
}
}1
2
3
4
5
6
7
2
3
4
5
6
7
py
@dataclass
class Sample:
options: list[bool]1
2
3
4
2
3
4