Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for Iter (0.17 sec)

  1. doc/next/6-stdlib/3-iter.md

    ### Iterators
    
    The new [iter] package provides the basic definitions for working with
    user-defined iterators.
    
    The [slices] package adds several functions that work with iterators:
    - [All](/pkg/slices#All) returns an iterator over slice indexes and values.
    - [Values](/pkg/slices#Values) returns an iterator over slice elements.
    - [Backward](/pkg/slices#Backward) returns an iterator that loops over
      a slice backward.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. api/go1.23.txt

    pkg maps, func Collect[$0 comparable, $1 interface{}](iter.Seq2[$0, $1]) map[$0]$1 #61900
    pkg maps, func Insert[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0, iter.Seq2[$1, $2]) #61900
    pkg maps, func Keys[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) iter.Seq[$1] #61900
    pkg maps, func Values[$0 interface{ ~map[$1]$2 }, $1 comparable, $2 interface{}]($0) iter.Seq[$2] #61900
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 20:48:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/cmd/link/testdata/linkname/coro.go

    // license that can be found in the LICENSE file.
    
    // Linkname coroswitch is not allowed, even if iter.Pull
    // is instantiated in the same package.
    
    package main
    
    import (
    	"iter"
    	"unsafe"
    )
    
    func seq(yield func(int) bool) {
    	yield(123)
    }
    
    func main() {
    	next, stop := iter.Pull(seq)
    	next()
    	stop()
    	coroswitch(nil)
    }
    
    //go:linkname coroswitch runtime.coroswitch
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 506 bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/maps/61900.md

    <!-- see ../../3-iter.md -->...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 29 bytes
    - Viewed (0)
  5. doc/next/6-stdlib/99-minor/iter/61897.md

    <!-- see ../../3-iter.md -->...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 20:33:25 UTC 2024
    - 29 bytes
    - Viewed (0)
  6. doc/next/6-stdlib/99-minor/slices/61899.md

    <!-- see ../../3-iter.md -->...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 29 bytes
    - Viewed (0)
  7. src/cmd/link/testdata/linkname/ok.go

    // license that can be found in the LICENSE file.
    
    // Use of public API is ok.
    
    package main
    
    import (
    	"iter"
    	"unique"
    )
    
    func seq(yield func(int) bool) {
    	yield(123)
    }
    
    var s = "hello"
    
    func main() {
    	h := unique.Make(s)
    	next, stop := iter.Pull(seq)
    	defer stop()
    	println(h.Value())
    	println(next())
    	println(next())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 433 bytes
    - Viewed (0)
  8. doc/next/6-stdlib/99-minor/slices/53987.md

    <!-- see ../../3-iter.md -->...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 29 bytes
    - Viewed (0)
  9. src/cmd/link/internal/loader/loader.go

    // If a name is in this map, it is allowed only in listed packages,
    // even if it has a linknamed definition.
    var blockedLinknames = map[string][]string{
    	// coroutines
    	"runtime.coroswitch": {"iter"},
    	"runtime.newcoro":    {"iter"},
    	// weak references
    	"internal/weak.runtime_registerWeakPointer": {"internal/weak"},
    	"internal/weak.runtime_makeStrongFromWeak":  {"internal/weak"},
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  10. src/cmd/dist/test.go

    				runTests: "SystemRoots",
    				env:      []string{"GOOS=ios", "CGO_ENABLED=1"},
    				pkg:      "crypto/x509",
    			})
    	}
    
    	// GOEXPERIMENT=rangefunc tests
    	if !t.compileOnly {
    		for _, pkg := range []string{"iter", "slices", "maps"} {
    			t.registerTest("GOEXPERIMENT=rangefunc",
    				&goTest{
    					variant: pkg,
    					short:   t.short,
    					env:     []string{"GOEXPERIMENT=rangefunc"},
    					pkg:     pkg,
    				})
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top