Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for replicate (0.15 sec)

  1. doc/go1.17_spec.html

    case x == 4: f3()
    }
    </pre>
    
    <p>
    Implementation restriction: A compiler may disallow multiple case
    expressions evaluating to the same constant.
    For instance, the current compilers disallow duplicate integer,
    floating point, or string constants in case expressions.
    </p>
    
    <h4 id="Type_switches">Type switches</h4>
    
    <p>
    A type switch compares types rather than values. It is otherwise similar
    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)
  2. doc/go_spec.html

    equations for the respective type parameters.
    </p>
    
    <p>
    For example, given
    </p>
    
    <pre>
    // dedup returns a copy of the argument slice with any duplicate entries removed.
    func dedup[S ~[]E, E comparable](S) S { … }
    
    type Slice []int
    var s Slice
    s = dedup(s)   // same as s = dedup[Slice, int](s)
    </pre>
    
    <p>
    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)
Back to top