Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 596 for elem1 (0.05 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/html/common.js

        paramSetter(params);
    
        elem.href = url.toString();
      }
    
      function handleTopClick(e) {
        // Walk back until we find TR and then get the Name column (index 5)
        let elem = e.target;
        while (elem != null && elem.nodeName != 'TR') {
          elem = elem.parentElement;
        }
        if (elem == null || elem.children.length < 6) return;
    
        e.preventDefault();
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. test/typeparam/ordered.go

    		~float32 | ~float64 |
    		~string
    }
    
    type orderedSlice[Elem Ordered] []Elem
    
    func (s orderedSlice[Elem]) Len() int { return len(s) }
    func (s orderedSlice[Elem]) Less(i, j int) bool {
    	if s[i] < s[j] {
    		return true
    	}
    	isNaN := func(f Elem) bool { return f != f }
    	if isNaN(s[i]) && !isNaN(s[j]) {
    		return true
    	}
    	return false
    }
    func (s orderedSlice[Elem]) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/slice.go

    package types2
    
    // A Slice represents a slice type.
    type Slice struct {
    	elem Type
    }
    
    // NewSlice returns a new slice type for the given element type.
    func NewSlice(elem Type) *Slice { return &Slice{elem: elem} }
    
    // Elem returns the element type of slice s.
    func (s *Slice) Elem() Type { return s.elem }
    
    func (s *Slice) Underlying() Type { return s }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 577 bytes
    - Viewed (0)
  4. test/typeparam/chans.go

    // until c is closed or the context is canceled, at which point the
    // returned channel is closed.
    func _Filter[Elem any](ctx context.Context, c <-chan Elem, f func(Elem) bool) <-chan Elem {
    	r := make(chan Elem)
    	go func(ctx context.Context, c <-chan Elem, f func(Elem) bool, r chan<- Elem) {
    		defer close(r)
    		for {
    			select {
    			case <-ctx.Done():
    				return
    			case v, ok := <-c:
    				if !ok {
    					return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  5. src/go/parser/testdata/sort.go2

    type sliceFn[Elem any] struct {
    	s []Elem
    	f func(Elem, Elem) bool
    }
    
    func (s sliceFn[Elem]) Len() int           { return len(s.s) }
    func (s sliceFn[Elem]) Less(i, j int) bool { return s.f(s.s[i], s.s[j]) }
    func (s sliceFn[Elem]) Swap(i, j int)      { s.s[i], s.s[j] = s.s[j], s.s[i] }
    
    // SliceFn sorts the slice s according to the function f.
    func SliceFn[Elem any](s []Elem, f func(Elem, Elem) bool) {
    	Sort(sliceFn[Elem]{s, f})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 19:44:06 UTC 2020
    - 902 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/chan.go

    // Dir returns the direction of channel c.
    func (c *Chan) Dir() ChanDir { return c.dir }
    
    // Elem returns the element type of channel c.
    func (c *Chan) Elem() Type { return c.elem }
    
    func (c *Chan) Underlying() Type { return c }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 910 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/validation/field/path.go

    func (p *Path) String() string {
    	if p == nil {
    		return "<nil>"
    	}
    	// make a slice to iterate
    	elems := []*Path{}
    	for ; p != nil; p = p.parent {
    		elems = append(elems, p)
    	}
    
    	// iterate, but it has to be backwards
    	buf := bytes.NewBuffer(nil)
    	for i := range elems {
    		p := elems[len(elems)-1-i]
    		if p.parent != nil && len(p.name) > 0 {
    			// This is either the root or it is a subscript.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 11 08:23:53 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  8. src/go/types/array.go

    package types
    
    // An Array represents an array type.
    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    // A negative length indicates an unknown length.
    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  9. src/strings/strings.go

    func Join(elems []string, sep string) string {
    	switch len(elems) {
    	case 0:
    		return ""
    	case 1:
    		return elems[0]
    	}
    
    	var n int
    	if len(sep) > 0 {
    		if len(sep) >= maxInt/(len(elems)-1) {
    			panic("strings: Join output length overflow")
    		}
    		n += len(sep) * (len(elems) - 1)
    	}
    	for _, elem := range elems {
    		if len(elem) > maxInt-n {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:48:16 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  10. src/runtime/debug/mod.go

    		newline   = "\n"
    		tab       = "\t"
    	)
    
    	readModuleLine := func(elem []string) (Module, error) {
    		if len(elem) != 2 && len(elem) != 3 {
    			return Module{}, fmt.Errorf("expected 2 or 3 columns; got %d", len(elem))
    		}
    		version := elem[1]
    		sum := ""
    		if len(elem) == 3 {
    			sum = elem[2]
    		}
    		return Module{
    			Path:    elem[0],
    			Version: version,
    			Sum:     sum,
    		}, nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:51 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top