blob: 945b33269b65ed65621683b384c9a406f9e63538 [file] [log] [blame]
// run
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
type Iterator[T any] interface {
type IteratorFunc[T any] func(fn func(T) bool)
func (f IteratorFunc[T]) Iterate() {
func FromIterator[T any](it Iterator[T]) {
func Foo[T, R any]() {
func main() {
Foo[int, int]()