We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4971b97 commit 230ff11Copy full SHA for 230ff11
lua/neo-tree/collections.lua
@@ -1,14 +1,14 @@
1
local log = require("neo-tree.log")
2
3
-Node = {}
+local Node = {}
4
function Node:new(value)
5
local props = { prev = nil, next = nil, value = value }
6
setmetatable(props, self)
7
self.__index = self
8
return props
9
end
10
11
-LinkedList = {}
+local LinkedList = {}
12
function LinkedList:new()
13
local props = { head = nil, tail = nil, size = 0 }
14
@@ -49,7 +49,7 @@ function LinkedList:remove_node(node)
49
50
51
-- First in Last Out
52
-Queue = {}
+local Queue = {}
53
function Queue:new()
54
local props = { _list = LinkedList:new() }
55
0 commit comments