}
/// Returns the head node element.
pub fn getHead(self: @This()) *Node {
_ = self;
return head;
}
pub fn display(self: @This()) void {
_ = self;
std.debug.print("SkipList(Lazy) structure - P:{d}, max_level: {d}\n", .{ 1 / opts.skip_size, max_level });
var level: usize = max_level;
while (level > 0) : (level -= 1) {
var node: ?*Node = head.nexts[level - 1];
std.debug.print("Level {d}: ", .{level - 1});
while (node != null) {
std.debug.print("{any} ", .{node.?.key});
node = node.?.nexts[level - 1];
}
std.debug.print("\n", .{});
}