-- callback is a function that returns T/F

function BoundedQueue:Find(callback, returnNode)
	local curr = self.head
	
	while curr do
		if callback(curr.content) == false then
			curr = curr.next
			continue
		end
		return if returnNode == true then curr else curr.content
	end
end

return BoundedQueue
