blob: e7f8ecd165bc870d4719ac698ffcd3b6921465ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
main ::= fn() {
nums : []int;
l := slice_to_ll(nums);
}
slice_to_ll ::= fn(t::=, slice: []t) use ll: LinkedList(t) {
}
LinkedList ::= struct (of :: Type) {
head: of;
tail: &LinkedList(of);
}
|