Change module name
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,4 +1,6 @@
|
|||||||
# Binaries for programs and plugins
|
# Binaries for programs and plugins
|
||||||
|
build/
|
||||||
|
|
||||||
*.exe
|
*.exe
|
||||||
*.exe~
|
*.exe~
|
||||||
*.dll
|
*.dll
|
||||||
@@ -13,3 +15,4 @@
|
|||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Dependency directories (remove the comment below to include it)
|
||||||
# vendor/
|
# vendor/
|
||||||
|
.idea/
|
||||||
@@ -3,4 +3,9 @@ package collection
|
|||||||
type Iterator[E any] interface {
|
type Iterator[E any] interface {
|
||||||
HasNext() bool
|
HasNext() bool
|
||||||
Next() E
|
Next() E
|
||||||
|
NextWithIndex() (int, E)
|
||||||
|
}
|
||||||
|
|
||||||
|
type Iterable[E any] interface {
|
||||||
|
Iterator() Iterator[E]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package collection_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"asd.me/pkg/collection"
|
"github.com/asd/pkg/collection"
|
||||||
)
|
)
|
||||||
|
|
||||||
type pair struct {
|
type pair struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user