- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IteratorFunc (0.15 sec)
-
test/typeparam/issue48602.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 414 bytes - Viewed (0) -
test/typeparam/issue48598.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 475 bytes - Viewed (0) -
test/typeparam/issue48645b.go
// license that can be found in the LICENSE file. package main type Iterator[T any] interface { Iterate(fn func(T) bool) } type IteratorFunc[T any] func(fn func(T) bool) func (f IteratorFunc[T]) Iterate(fn func(T) bool) { f(fn) } type Stream[T any] struct { it Iterator[T] } func (s Stream[T]) Iterate(fn func(T) bool) { if s.it == nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.4K bytes - Viewed (0) -
src/cmd/compile/internal/rangefunc/rewrite.go
setPos(stateVarDecl, start) block.List = append(block.List, stateVarDecl) } // iteratorFunc(bodyFunc) block.List = append(block.List, call) if r.checkFuncMisuse() { // iteratorFunc has exited, check for swallowed panic, and set body state to abi.RF_EXHAUSTED nif := &syntax.IfStmt{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0)