We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8e2b9c commit 1cbe142Copy full SHA for 1cbe142
list.go
@@ -19,7 +19,7 @@ func NewList[T any](elems ...T) *List[T] {
19
return l
20
}
21
22
-func NewListFromIter[T any](it iter.Seq[T]) *List[T] {
+func NewListFromIter[TIter goiter.SeqX[T], T any](it TIter) *List[T] {
23
l := NewList[T]()
24
for each := range it {
25
l.Add(each)
list_test.go
@@ -123,7 +123,7 @@ func TestList_RemoveAt(t *testing.T) {
123
124
125
func TestList_Pop(t *testing.T) {
126
- list := NewListFromIter[int](goiter.Range(1, 3).Seq())
+ list := NewListFromIter(goiter.Range(1, 3))
127
128
actual, ok := list.Pop()
129
if !ok {
0 commit comments