PR3L-Verkettete-Listen-Abgabe2/LList.zig

35 lines
558 B
Zig
Raw Normal View History

const std = @import("std");
pub fn LLIst (comptime T: type) type {
return struct {
const Self = @This();
const _: T = undefined;
pub fn init() void {
}
pub fn deinit() void {
}
};
}
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 {
}