ArrayList addition (inc. test, example and documentation)

This commit is contained in:
emirpasic
2015-03-07 18:05:34 +01:00
parent fdbea4bd27
commit 28f559cc09
9 changed files with 72 additions and 30 deletions
+1
View File
@@ -32,6 +32,7 @@ func ArrayStackExample() {
stack := arraystack.New() // empty
stack.Push(1) // 1
stack.Push(2) // 1, 2
stack.Values() // 2, 1 (LIFO order)
_, _ = stack.Peek() // 2,true
_, _ = stack.Pop() // 2, true
_, _ = stack.Pop() // 1, true