Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 41 of 41 for x1 (0.01 sec)

  1. doc/go_spec.html

    Thus the length and capacity of a slice literal are the maximum
    element index plus one. A slice literal has the form
    </p>
    
    <pre>
    []T{x1, x2, … xn}
    </pre>
    
    <p>
    and is shorthand for a slice operation applied to an array:
    </p>
    
    <pre>
    tmp := [n]T{x1, x2, … xn}
    tmp[0 : n]
    </pre>
    
    <p>
    Within a composite literal of array, slice, or map type <code>T</code>,
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Tue Dec 02 23:07:19 UTC 2025
    - 286.5K bytes
    - Viewed (1)
Back to top