Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 87 for setz (0.05 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

                      @Override
                      protected Set<String> create(String[] elements) {
                        Set<String> set1 = Sets.newHashSet(elements);
                        set1.add(samples().e3());
                        Set<String> set2 = Sets.newHashSet(elements);
                        set2.add(samples().e4());
                        return Sets.intersection(set1, set2);
                      }
                    })
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  2. test/typeparam/sets.go

    	}
    	return true
    }
    
    // A _Set is a set of elements of some type.
    type _Set[Elem comparable] struct {
    	m map[Elem]struct{}
    }
    
    // _Make makes a new set.
    func _Make[Elem comparable]() _Set[Elem] {
    	return _Set[Elem]{m: make(map[Elem]struct{})}
    }
    
    // Add adds an element to a set.
    func (s _Set[Elem]) Add(v Elem) {
    	s.m[v] = struct{}{}
    }
    
    // Delete removes an element from a set. If the element is not present
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    ((SETNE|SETL|SETG|SETB|SETA)     (FlagEQ))     => (MOVLconst [0])
    ((SETNE|SETL|SETLE|SETB|SETBE)   (FlagLT_ULT)) => (MOVLconst [1])
    ((SETEQ|SETG|SETGE|SETA|SETAE)   (FlagLT_ULT)) => (MOVLconst [0])
    ((SETNE|SETL|SETLE|SETA|SETAE)   (FlagLT_UGT)) => (MOVLconst [1])
    ((SETEQ|SETG|SETGE|SETB|SETBE)   (FlagLT_UGT)) => (MOVLconst [0])
    ((SETNE|SETG|SETGE|SETB|SETBE)   (FlagGT_ULT)) => (MOVLconst [1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  4. clause/set.go

    package clause
    
    import "sort"
    
    type Set []Assignment
    
    type Assignment struct {
    	Column Column
    	Value  interface{}
    }
    
    func (set Set) Name() string {
    	return "SET"
    }
    
    func (set Set) Build(builder Builder) {
    	if len(set) > 0 {
    		for idx, assignment := range set {
    			if idx > 0 {
    				builder.WriteByte(',')
    			}
    			builder.WriteQuoted(assignment.Column)
    			builder.WriteByte('=')
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 29 03:02:44 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. cmd/erasure-sets.go

    	for {
    		select {
    		case <-ctx.Done():
    			return
    		case <-timer.C:
    			var wg sync.WaitGroup
    			for _, set := range s.sets {
    				wg.Add(1)
    				go func(set *erasureObjects) {
    					defer wg.Done()
    					if set == nil {
    						return
    					}
    					set.cleanupDeletedObjects(ctx)
    				}(set)
    			}
    			wg.Wait()
    
    			// Reset for the next interval
    			timer.Reset(globalAPIConfig.getDeleteCleanupInterval())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  6. src/go/parser/testdata/set.go2

    // Package set implements sets of any type.
    package set
    
    type Set[Elem comparable] map[Elem]struct{}
    
    func Make[Elem comparable]() Set[Elem] {
    	return make(Set(Elem))
    }
    
    func (s Set[Elem]) Add(v Elem) {
    	s[v] = struct{}{}
    }
    
    func (s Set[Elem]) Delete(v Elem) {
    	delete(s, v)
    }
    
    func (s Set[Elem]) Contains(v Elem) bool {
    	_, ok := s[v]
    	return ok
    }
    
    func (s Set[Elem]) Len() int {
    	return len(s)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 19:44:06 UTC 2020
    - 474 bytes
    - Viewed (0)
  7. pkg/util/sets/set.go

    func (s Set[T]) Delete(item T) Set[T] {
    	delete(s, item)
    	return s
    }
    
    // DeleteAll removes items from the set.
    func (s Set[T]) DeleteAll(items ...T) Set[T] {
    	for _, item := range items {
    		delete(s, item)
    	}
    	return s
    }
    
    // Merge a set of objects that are in s2 into s
    // For example:
    // s = {a1, a2, a3}
    // s2 = {a3, a4, a5}
    // s.Merge(s2) = {a1, a2, a3, a4, a5}
    func (s Set[T]) Merge(s2 Set[T]) Set[T] {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    	return ret
    }
    
    // Insert adds items to the set.
    func (s Set[T]) Insert(items ...T) Set[T] {
    	for _, item := range items {
    		s[item] = Empty{}
    	}
    	return s
    }
    
    func Insert[T comparable](set Set[T], items ...T) Set[T] {
    	return set.Insert(items...)
    }
    
    // Delete removes all items from the set.
    func (s Set[T]) Delete(items ...T) Set[T] {
    	for _, item := range items {
    		delete(s, item)
    	}
    	return s
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/UnionFileTreeTest.groovy

        private final UnionFileTree set = new UnionFileTree(TestFiles.taskDependencyFactory(), "<display name>")
    
        def setup() {
            NativeServicesTestFixture.initialize()
        }
    
        def canAddFileTree() {
            FileTreeInternal set1 = Mock(FileTreeInternal)
            when:
            set.addToUnion(set1)
    
            then:
            set.sourceCollections == [set1]
        }
    
        def cannotAddFileCollection() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. pkg/util/smallset/smallset_test.go

    		items2 = append(items2, fmt.Sprint(i))
    	}
    	b.Run("Set", func(b *testing.B) {
    		set1000 := sets.New(items1000...)
    		set100 := sets.New(items100...)
    		set2 := sets.New(items2...)
    		b.Run("New/1", func(b *testing.B) {
    			for range b.N {
    				_ = sets.New("a")
    			}
    		})
    		b.Run("New/1000", func(b *testing.B) {
    			for range b.N {
    				_ = sets.New(items1000...)
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top