Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 206 for iter2 (0.04 sec)

  1. test/typeparam/issue50642.go

    	temp2, ok = x[43]
    	_ = ok
    	return temp2.String()
    }
    
    func main() {
    	ch1 := make(chan int, 2)
    	ch1 <- 5
    	ch1 <- 6
    	ch = ch1
    	iter := Temp[int]{}
    	iter.HasNext()
    
    	iter2 := Temp2[MyInt]{}
    	if got, want := iter2.HasNext(), "a"; got != want {
    		panic(fmt.Sprintf("got %v, want %v", got, want))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1013 bytes
    - Viewed (0)
  2. test/range4.go

    func getvar(p *int) *int {
    	ncalls++
    	return p
    }
    
    func iter2(list ...int) func(func(int, int) bool) {
    	return func(yield func(int, int) bool) {
    		for i, x := range list {
    			if !yield(i, x) {
    				return
    			}
    		}
    	}
    }
    
    func testcalls() {
    	var i, v int
    	ncalls = 0
    	si := 0
    	sv := 0
    	for *getvar(&i), *getvar(&v) = range iter2(1, 2) {
    		si += i
    		sv += v
    	}
    	if ncalls != 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 16:00:53 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> to concatenate an arbitrary number of streams, use {@code
       * Stream.of(stream1, stream2, ...).flatMap(s -> s)}. If the sources are iterables, use {@code
       * Stream.of(iter1, iter2, ...).flatMap(Streams::stream)}.
       *
       * @throws NullPointerException if any of the provided iterables is {@code null}
       * @since 20.0
       */
      @SafeVarargs
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 30 00:14:39 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> to concatenate an arbitrary number of streams, use {@code
       * Stream.of(stream1, stream2, ...).flatMap(s -> s)}. If the sources are iterables, use {@code
       * Stream.of(iter1, iter2, ...).flatMap(Streams::stream)}.
       *
       * @throws NullPointerException if any of the provided iterables is {@code null}
       * @since 20.0
       */
      @SafeVarargs
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 30 00:14:39 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  5. 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)
  6. src/slices/iter.go

    // license that can be found in the LICENSE file.
    
    package slices
    
    import (
    	"cmp"
    	"iter"
    )
    
    // All returns an iterator over index-value pairs in the slice.
    // The indexes range in the usual order, from 0 through len(s)-1.
    func All[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/maps/iter.go

    // license that can be found in the LICENSE file.
    
    package maps
    
    import "iter"
    
    // All returns an iterator over key-value pairs from m.
    // The iteration order is not specified and is not guaranteed
    // to be the same from one call to the next.
    func All[Map ~map[K]V, K comparable, V any](m Map) iter.Seq2[K, V] {
    	return func(yield func(K, V) bool) {
    		for k, v := range m {
    			if !yield(k, v) {
    				return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:41:45 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/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: Fri Apr 26 19:27:51 UTC 2019
    - 11K bytes
    - Viewed (0)
  9. src/reflect/iter.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package reflect
    
    import "iter"
    
    func rangeNum[T int8 | int16 | int32 | int64 | int |
    	uint8 | uint16 | uint32 | uint64 | uint |
    	uintptr, N int64 | uint64](v N) iter.Seq[Value] {
    	return func(yield func(v Value) bool) {
    		// cannot use range T(v) because no core type.
    		for i := T(0); i < T(v); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tpu-dynamic-layout-pass.mlir

      // CHECK-DAG: %[[COPY0:.*]] = "tf.TPUCopyWithLayout"(%[[ITER0]]#0, %[[LAYOUT0]]) {device = "/device:TPU:0"}
      // CHECK-DAG: %[[COPY1:.*]] = "tf.TPUCopyWithLayout"(%[[ITER0]]#1, %[[LAYOUT1]]) {device = "/device:TPU:0"}
      // CHECK-DAG: %[[COPY2:.*]] = "tf.TPUCopyWithLayout"(%[[ITER1]]#0, %[[LAYOUT0]]) {device = "/device:TPU:1"}
      // CHECK-DAG: %[[COPY3:.*]] = "tf.TPUCopyWithLayout"(%[[ITER1]]#1, %[[LAYOUT1]]) {device = "/device:TPU:1"}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 29.6K bytes
    - Viewed (0)
Back to top