2024-11-06 15:44:28 +01:00
|
|
|
const std = @import("std");
|
|
|
|
|
|
|
|
pub fn LLIst (comptime T: type) type {
|
|
|
|
return struct {
|
|
|
|
const Self = @This();
|
|
|
|
|
2024-11-06 15:46:19 +01:00
|
|
|
// nur um den compiler zufrieden zu stellen 😡
|
2024-11-06 15:44:28 +01:00
|
|
|
const _: T = undefined;
|
|
|
|
|
|
|
|
pub fn init() void {
|
2024-11-06 15:46:19 +01:00
|
|
|
//TODO
|
2024-11-06 15:44:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn deinit() void {
|
2024-11-06 15:46:19 +01:00
|
|
|
//TODO
|
2024-11-06 15:44:28 +01:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn Node () type {
|
|
|
|
return struct {
|
|
|
|
comptime T: type = undefined,
|
|
|
|
const Self = @This();
|
|
|
|
|
|
|
|
const next: *Self = undefined;
|
|
|
|
//var value: T = undefined;
|
|
|
|
|
|
|
|
pub fn init(this: *Self, comptime T: type) void {
|
|
|
|
this.T = T;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() !void {
|
|
|
|
|
|
|
|
}
|