lets try another one
parent
0c0d74c00e
commit
c118f0fc7d
|
@ -18,7 +18,7 @@ pub fn LList (comptime T: type) type {
|
|||
pub fn Node (comptime T: type) type {
|
||||
return struct {
|
||||
const Self = @This();
|
||||
next: *Self, //? Nächste Node in der Liste
|
||||
next: ?*Self, //? Nächste Node in der Liste
|
||||
|
||||
|
||||
pub fn init(this: *Self, value: T) void {
|
||||
|
@ -33,6 +33,7 @@ pub fn Node (comptime T: type) type {
|
|||
}
|
||||
|
||||
pub fn main() !void {
|
||||
var testList: LLIst(u64) = undefined;
|
||||
|
||||
var testList: LList(u64) = undefined;
|
||||
try testList.init();
|
||||
}
|
Loading…
Reference in New Issue