Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for 01234567 (0.15 sec)

  1. src/slices/example_test.go

    func ExampleConcat() {
    	s1 := []int{0, 1, 2, 3}
    	s2 := []int{4, 5, 6}
    	concat := slices.Concat(s1, s2)
    	fmt.Println(concat)
    	// Output:
    	// [0 1 2 3 4 5 6]
    }
    
    func ExampleContains() {
    	numbers := []int{0, 1, 2, 3}
    	fmt.Println(slices.Contains(numbers, 2))
    	fmt.Println(slices.Contains(numbers, 4))
    	// Output:
    	// true
    	// false
    }
    
    func ExampleRepeat() {
    	numbers := []int{0, 1, 2, 3}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/ppc64.s

    	MOVD $-32768, R6                // 38c08000
    	MOVD $1234567, R5               // 6405001260a5d687 or 0600001238a0d687
    	MOVW $1, R3                     // 38600001
    	MOVW $-1, R4                    // 3880ffff
    	MOVW $65535, R5                 // 6005ffff
    	MOVW $65536, R6                 // 3cc00001
    	MOVW $-32767, R5                // 38a08001
    	MOVW $-32768, R6                // 38c08000
    	MOVW $1234567, R5               // 6405001260a5d687 or 0600001238a0d687
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 21:53:50 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  3. src/maps/iter_test.go

    		1: 1,
    		2: 1,
    	}
    	for i, v := range map[int]int{
    		0: 1,
    		2: 3,
    		4: 5,
    		6: 7,
    		8: 9,
    	} {
    		want[i] = v
    	}
    
    	if !Equal(got, want) {
    		t.Errorf("Insert got: %v, want: %v", got, want)
    	}
    }
    
    func TestCollect(t *testing.T) {
    	m := map[int]int{
    		0: 1,
    		2: 3,
    		4: 5,
    		6: 7,
    		8: 9,
    	}
    	got := Collect(All(m))
    	if !Equal(got, m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:44:19 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. test/codegen/arithmetic.go

    	out[1] = a + 0xFFFFFFFE00000000
    	// ppc64x/power10:"ADD\t[$]1234567,"
    	// ppc64x/power9:"ADDIS\t[$]19,", "ADD\t[$]-10617,"
    	// ppc64x/power8:"ADDIS\t[$]19,", "ADD\t[$]-10617,"
    	out[2] = a + 1234567
    	// ppc64x/power10:"ADD\t[$]-1234567,"
    	// ppc64x/power9:"ADDIS\t[$]-19,", "ADD\t[$]10617,"
    	// ppc64x/power8:"ADDIS\t[$]-19,", "ADD\t[$]10617,"
    	out[3] = a - 1234567
    	// ppc64x/power10:"ADD\t[$]2147450879,"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. src/time/time_test.go

    }
    
    var gobTests = []Time{
    	Date(0, 1, 2, 3, 4, 5, 6, UTC),
    	Date(7, 8, 9, 10, 11, 12, 13, FixedZone("", 0)),
    	Unix(81985467080890095, 0x76543210), // Time.sec: 0x0123456789ABCDEF
    	{},                                  // nil location
    	Date(1, 2, 3, 4, 5, 6, 7, FixedZone("", 32767*60)),
    	Date(1, 2, 3, 4, 5, 6, 7, FixedZone("", -32768*60)),
    }
    
    func TestTimeGob(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    copy(dst, src []T) int
    copy(dst []byte, src string) int
    </pre>
    
    <p>
    Examples:
    </p>
    
    <pre>
    var a = [...]int{0, 1, 2, 3, 4, 5, 6, 7}
    var s = make([]int, 6)
    var b = make([]byte, 5)
    n1 := copy(s, a[0:])            // n1 == 6, s == []int{0, 1, 2, 3, 4, 5}
    n2 := copy(s, s[2:])            // n2 == 4, s == []int{2, 3, 4, 5, 4, 5}
    n3 := copy(b, "Hello, World!")  // n3 == 5, b == []byte("Hello")
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  7. src/encoding/gob/encoder_test.go

    func TestBasicEncoderDecoder(t *testing.T) {
    	var values = []any{
    		true,
    		int(123),
    		int8(123),
    		int16(-12345),
    		int32(123456),
    		int64(-1234567),
    		uint(123),
    		uint8(123),
    		uint16(12345),
    		uint32(123456),
    		uint64(1234567),
    		uintptr(12345678),
    		float32(1.2345),
    		float64(1.2345678),
    		complex64(1.2345 + 2.3456i),
    		complex128(1.2345678 + 2.3456789i),
    		[]byte("hello"),
    		string("hello"),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. src/hash/maphash/smhasher_test.go

    		t.Skip("Too slow on wasm")
    	}
    	if testing.Short() {
    		t.Skip("Skipping in short mode")
    	}
    	testenv.ParallelOn64Bit(t)
    	h := newHashSet()
    	permutation(t, h, []uint32{0, 1, 2, 3, 4, 5, 6, 7}, 8)
    	permutation(t, h, []uint32{0, 1 << 29, 2 << 29, 3 << 29, 4 << 29, 5 << 29, 6 << 29, 7 << 29}, 8)
    	permutation(t, h, []uint32{0, 1}, 20)
    	permutation(t, h, []uint32{0, 1 << 31}, 20)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. doc/go_spec.html

    copy(dst, src []T) int
    copy(dst []byte, src string) int
    </pre>
    
    <p>
    Examples:
    </p>
    
    <pre>
    var a = [...]int{0, 1, 2, 3, 4, 5, 6, 7}
    var s = make([]int, 6)
    var b = make([]byte, 5)
    n1 := copy(s, a[0:])            // n1 == 6, s is []int{0, 1, 2, 3, 4, 5}
    n2 := copy(s, s[2:])            // n2 == 4, s is []int{2, 3, 4, 5, 4, 5}
    n3 := copy(b, "Hello, World!")  // n3 == 5, b is []byte("Hello")
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/canonicalize.mlir

      // CHECK-DAG: %[[cst:.*]] = arith.constant dense<[7, 6, 5, 4, 3, 2]> : tensor<6xi32>
      // CHECK-DAG: %[[cst_0:.*]] = arith.constant dense<[5, 4, 3, 2, 1, 0]> : tensor<6xi32>
      // CHECK-DAG: %[[cst_1:.*]] = arith.constant dense<[1, 2, 3, 4, 5, 6, 7]> : tensor<7xi32>
      // CHECK: %0 = "tfl.reshape"(%arg0, %[[cst]]) : (tensor<7x6x5x4x3x2x1xf32>, tensor<6xi32>) -> tensor<7x6x5x4x3x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top