- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 50 for iter (1.99 sec)
-
src/cmd/vendor/golang.org/x/text/unicode/norm/iter.go
// and return that. func (i *Iter) returnSlice(a, b int) []byte { if i.rb.src.bytes == nil { return i.buf[:copy(i.buf[:], i.rb.src.str[a:b])] } return i.rb.src.bytes[a:b] } // Pos returns the byte position at which the next call to Next will commence processing. func (i *Iter) Pos() int { return i.p } func (i *Iter) setDone() { i.next = nextDone i.p = i.rb.nsrc }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 11K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 12.2K bytes - Viewed (0) -
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) -
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) -
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) -
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)