goofin around
parent
edce2ca32c
commit
cd94396df4
@ -0,0 +1,16 @@
|
||||
package list
|
||||
|
||||
type Iterable[T any] interface {
|
||||
Iter() Iter[T]
|
||||
}
|
||||
|
||||
type Iter[T any] interface {
|
||||
Next(*T) bool
|
||||
}
|
||||
|
||||
/*
|
||||
type Iter[T any] interface {
|
||||
Done() bool
|
||||
Next() T
|
||||
}
|
||||
*/
|
Loading…
Reference in New Issue