Open apatniv opened 3 months ago
Existing documentation on master branch still refers to older version of gods before generics.
Example:
package main import aq "github.com/emirpasic/gods/queues/arrayqueue" // ArrayQueueExample to demonstrate basic usage of ArrayQueue func main() { queue := aq.New() // empty queue.Enqueue(1) // 1 queue.Enqueue(2) // 1, 2 _ = queue.Values() // 1, 2 (FIFO order) _, _ = queue.Peek() // 1,true _, _ = queue.Dequeue() // 1, true _, _ = queue.Dequeue() // 2, true _, _ = queue.Dequeue() // nil, false (nothing to deque) queue.Enqueue(1) // 1 queue.Clear() // empty queue.Empty() // true _ = queue.Size() // 0 }
This needs to updated for generics. I am glad to update the documentation via a PR as well if there is no concern.
Existing documentation on master branch still refers to older version of gods before generics.
Example:
This needs to updated for generics. I am glad to update the documentation via a PR as well if there is no concern.