(no title)
kajika91 | 10 months ago
pub const SinglyLinkedList(comptime T: type) type {
return struct {
first: ?*Node = null,
pub const Node = struct {
next: ?*Node = null,
};
const Self = @This();
pub fn data(self: Self) *T {
return @fieldParentPtr("node", self);
}
};
nh1996|10 months ago
throwawaymaths|10 months ago
unknown|10 months ago
[deleted]