mirror of https://github.com/emirpasic/gods
- make ArrayStack make use of our ArrayList
- add Values() method to stacks interface - write testspull/1/head
parent
28f559cc09
commit
8e5760a16e
@ -1,14 +0,0 @@
|
||||
package utils
|
||||
|
||||
// order and elements in the two slices have to match
|
||||
func IdenticalSlices(s1 []interface{}, s2 []interface{}) bool {
|
||||
if len(s1) != len(s2) {
|
||||
return false
|
||||
}
|
||||
for i := 0; i < len(s1); i++ {
|
||||
if s1[i] != s2[i] {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
Loading…
Reference in New Issue