WARNING
Old usage sample:
const LinkedList = preload("LinkedList.gd")
func _ready():
var ll = LinkedList.new()
ll.push_back(-1)
ll.push_back(5)
ll.push_front(1)
ll.push_front(2)
print(ll.size()) # 4
print(ll.pop_best(funcref(self, "comp"))) # 5
print(ll.pop_back()) # -1
print(ll.pop_front()) # 2
print(ll.size()) # 1
func comp(a,b):
return a > b
</details>
@belzecue Hmm.. would you like to take over maintaining this snippet of code? I can't really give you edit rights or transfer it, but if you have your own version, either as a Gist or as a repo, I'd be willing to slap a big "Deprecated" warning on top and link people to yours (: