Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 561 for a$b (0.03 sec)

  1. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/defaultValues/whenCondition.kt

    fun foo(a: Int): Int {
        val b: Int = 1
        return when (a + b) {
            <expr>0</expr> -> b
            1 -> -b
            else -> a - b
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 141 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/work_overlay.txt

    stdout example.com/b
    ! stdout example.com/c
    
    -- overlay.json --
    {"Replace": {"go.work": "overlaywork"}}
    -- overlaywork --
    use (
        ./a
        ./b
    )
    -- go.work.non-overlay --
    use (
        ./a
        ./b
        ./c
    )
    -- a/go.mod --
    module example.com/a
    -- b/go.mod --
    module example.com/b
    -- c/go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 800 bytes
    - Viewed (0)
  3. src/slices/example_test.go

    	type Person struct {
    		Name string
    		Age  int
    	}
    	people := []Person{
    		{"Alice", 55},
    		{"Bob", 24},
    		{"Gopher", 13},
    	}
    	n, found := slices.BinarySearchFunc(people, Person{"Bob", 0}, func(a, b Person) int {
    		return strings.Compare(a.Name, b.Name)
    	})
    	fmt.Println("Bob:", n, found)
    	// Output:
    	// Bob: 1 true
    }
    
    func ExampleCompact() {
    	seq := []int{0, 1, 1, 2, 3, 5, 8}
    	seq = slices.Compact(seq)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsToolingApiParallelConfigurationIntegrationTest.groovy

            def model = fetchModel(GradleProject)
    
            then:
            model.name == "root"
            model.children.name == ["a", "b"]
    
            and:
            fixture.assertStateStored {
                projectsConfigured(":", ":a", ":b")
                modelsCreated(":", 2)
                modelsCreated(":a", ":b")
            }
        }
    
        private void addConventionPluginImplementation(String targetBuildName, String className) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/exitPointEquivalence/breakAndReturn2.kt

    fun foo(a: Int) {
        val b: Int = 1
        for (n in 1..b) {
            <expr>if (a > 0) throw Exception("")
            if (a + b > 0) break
            consume(a - b)
            return</expr>
        }
    
        consume("after")
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 234 bytes
    - Viewed (0)
  6. src/internal/fmtsort/sort.go

    	for iter.Next() {
    		sorted = append(sorted, KeyValue{iter.Key(), iter.Value()})
    	}
    	slices.SortStableFunc(sorted, func(a, b KeyValue) int {
    		return compare(a.Key, b.Key)
    	})
    	return sorted
    }
    
    // compare compares two values of the same type. It returns -1, 0, 1
    // according to whether a > b (1), a == b (0), or a < b (-1).
    // If the types differ, it returns -1.
    // See the comment on Sort for the comparison rules.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/controlFlow/breakContinue2.kt

    fun foo(a: Int) {
        val b: Int = 1
        loop1@ for (p in 1..b) {
            loop2@ for (n in 1..b) {
                <expr>if (a > 0) throw Exception("")
                if (a + b > 0) break@loop2
                if (a - b > 0) continue@loop1</expr>
            }
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 06:40:43 UTC 2024
    - 253 bytes
    - Viewed (0)
  8. src/net/http/cookiejar/jar_test.go

    	"/":           "/",
    	"/abc":        "/",
    	"/abc/":       "/abc",
    	"/abc/xyz":    "/abc",
    	"/abc/xyz/":   "/abc/xyz",
    	"/a/b/c.html": "/a/b",
    	"":            "/",
    	"strange":     "/",
    	"//":          "/",
    	"/a//b":       "/a/",
    	"/a/./b":      "/a/.",
    	"/a/../b":     "/a/..",
    }
    
    func TestDefaultPath(t *testing.T) {
    	for path, want := range defaultPathTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 34K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r55/CompositeDeduplicationCrossVersionSpec.groovy

            rootProject.name = 'root'
            include ':a', ':b'
            """
        }
    
        def "Included builds are deduplicated"() {
            given:
            settingsFile << """
                    includeBuild 'includedBuild1'
                    includeBuild 'includedBuild2'
                """
            multiProjectBuildInSubFolder("includedBuild1", ["a", "b", "c"])
            multiProjectBuildInSubFolder("includedBuild2", ["a", "b", "c"])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/dataFlowInfoProvider/exitPointSnapshot/languageConstructs/return.txt

      defaultExpressionInfo = null
      hasEscapingJumps = false
      hasJumps = true
      hasMultipleJumpKinds = false
      hasMultipleJumpTargets = false
      jumpExpressions = [
        return a + b
      ]
      returnValueType = kotlin.Int
      valuedReturnExpressions = [
        return a + b
      ]
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 322 bytes
    - Viewed (0)
Back to top