Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Hans (0.17 sec)

  1. src/builtin/builtin.go

    // 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.
    // If T is a floating-point type and any of the arguments are NaNs,
    // min will return NaN.
    func min[T cmp.Ordered](x T, y ...T) T
    
    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. doc/go_spec.html

    var s []string
    _ = min(s...)               // invalid: slice arguments are not permitted
    t := max("", "foo", "bar")  // t == "foo" (string kind)
    </pre>
    
    <p>
    For numeric arguments, assuming all NaNs are equal, <code>min</code> and <code>max</code> are
    commutative and associative:
    </p>
    
    <pre>
    min(x, y)    == min(y, x)
    min(x, y, z) == min(min(x, y), z) == min(x, min(y, z))
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top