Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for ordered (0.21 sec)

  1. src/builtin/builtin.go

    // arguments of [cmp.Ordered] types. There must be at least one argument.
    // If T is a floating-point type and any of the arguments are NaNs,
    // max will return NaN.
    func max[T cmp.Ordered](x T, y ...T) T
    
    // The min built-in function returns the smallest value of a fixed number of
    // arguments of [cmp.Ordered] types. There must be at least one argument.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/ast.go

    	switch n := x.(type) {
    	case *ast.Expr:
    		f.walk(*n, context, visit)
    
    	// everything else just recurs
    	default:
    		f.walkUnexpected(x, context, visit)
    
    	case nil:
    
    	// These are ordered and grouped to match ../../go/ast/ast.go
    	case *ast.Field:
    		if len(n.Names) == 0 && context == ctxField {
    			f.walk(&n.Type, ctxEmbedType, visit)
    		} else {
    			f.walk(&n.Type, ctxType, visit)
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  3. api/go1.21.txt

    pkg bytes, method (*Buffer) AvailableBuffer() []uint8 #53685
    pkg bytes, method (*Buffer) Available() int #53685
    pkg cmp, func Compare[$0 Ordered]($0, $0) int #59488
    pkg cmp, func Less[$0 Ordered]($0, $0) bool #59488
    pkg cmp, type Ordered interface {} #59488
    pkg context, func AfterFunc(Context, func()) func() bool #57928
    pkg context, func WithDeadlineCause(Context, time.Time, error) (Context, CancelFunc) #56661
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    apply to operands that are <i>ordered</i>.
    These terms and the result of the comparisons are defined as follows:
    </p>
    
    <ul>
    	<li>
    	Boolean values are comparable.
    	Two boolean values are equal if they are either both
    	<code>true</code> or both <code>false</code>.
    	</li>
    
    	<li>
    	Integer values are comparable and ordered, in the usual way.
    	</li>
    
    	<li>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. api/go1.5.txt

    pkg go/types, const IsInteger = 2
    pkg go/types, const IsInteger BasicInfo
    pkg go/types, const IsNumeric = 26
    pkg go/types, const IsNumeric BasicInfo
    pkg go/types, const IsOrdered = 42
    pkg go/types, const IsOrdered BasicInfo
    pkg go/types, const IsString = 32
    pkg go/types, const IsString BasicInfo
    pkg go/types, const IsUnsigned = 4
    pkg go/types, const IsUnsigned BasicInfo
    pkg go/types, const IsUntyped = 64
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  6. doc/go_spec.html

    apply to operands of <i>ordered</i> types.
    These terms and the result of the comparisons are defined as follows:
    </p>
    
    <ul>
    	<li>
    	Boolean types are comparable.
    	Two boolean values are equal if they are either both
    	<code>true</code> or both <code>false</code>.
    	</li>
    
    	<li>
    	Integer types are comparable and ordered.
    	Two integer values are compared in the usual way.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue1435.go

    					foundAThread = true
    					break
    				}
    				if filter == "Groups:" && strings.HasPrefix(line, "Groups:\t") {
    					// https://github.com/golang/go/issues/46145
    					// Containers don't reliably output this line in sorted order so manually sort and compare that.
    					a := strings.Split(line[8:], " ")
    					sort.Strings(a)
    					got := strings.Join(a, " ")
    					if got == expected[8:] {
    						foundAThread = true
    						break
    					}
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  8. src/archive/tar/strconv.go

    func (p *parser) parseNumeric(b []byte) int64 {
    	// Check for base-256 (binary) format first.
    	// If the first bit is set, then all following bits constitute a two's
    	// complement encoded number in big-endian byte order.
    	if len(b) > 0 && b[0]&0x80 != 0 {
    		// Handling negative numbers relies on the following identity:
    		//	-a-1 == ^a
    		//
    		// If the number is negative, we use an inversion mask to invert the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  9. src/archive/tar/common.go

    	// Since the Reader liberally reads some non-compliant files,
    	// it is possible for this to be FormatUnknown.
    	//
    	// If the format is unspecified when Writer.WriteHeader is called,
    	// then it uses the first format (in the order of USTAR, PAX, GNU)
    	// capable of encoding this Header (see Format).
    	Format Format
    }
    
    // sparseEntry represents a Length-sized fragment at Offset in the file.
    type sparseEntry struct{ Offset, Length int64 }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  10. src/cmd/cgo/gcc.go

    	//                    _cgoCheckPointer(_cgo0, nil)
    	//                    C.f(_cgo0)
    	//            }
    	//    }()()
    	// This works because the defer statement evaluates the first
    	// function literal in order to get the function to call.
    
    	var sb bytes.Buffer
    	sb.WriteString("func() ")
    	if call.Deferred {
    		sb.WriteString("func() ")
    	}
    
    	needsUnsafe := false
    	result := false
    	twoResults := false
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top