Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mergeInfo (0.08 sec)

  1. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/utils/SublistMerger.kt

        }
    }
    
    public fun <A : Any> List<A>.mergeInto(destination: MutableList<A>, f: SublistMerger<A>.() -> Unit) {
        SublistMerger(this, destination).apply {
            f()
            finish()
        }
    }
    
    public fun <A : Any> List<A>.mergeWith(f: SublistMerger<A>.() -> Unit): List<A> =
        mutableListOf<A>().also { destination -> mergeInto(destination, f) }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/liveness/intervals.go

    func (i1 Interval) adjacent(i2 Interval) bool {
    	return i1.en == i2.st || i2.en == i1.st
    }
    
    // MergeInto merges interval i2 into i1. This version happens to
    // require that the two intervals either overlap or are adjacent.
    func (i1 *Interval) MergeInto(i2 Interval) error {
    	if !i1.Overlaps(i2) && !i1.adjacent(i2) {
    		return fmt.Errorf("merge method invoked on non-overlapping/non-adjacent")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:27 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top