Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for explicitly (0.04 sec)

  1. doc/go_spec.html

    f1 := apply[[]int]             // type argument for S explicitly provided, type argument for E inferred
    f2 := apply[[]string, string]  // both type arguments explicitly provided
    
    var bytes []byte
    r := apply(bytes, func(byte) byte { … })  // both type arguments inferred from the function arguments
    </pre>
    
    <p>
    For a generic type, all type arguments must always be provided explicitly.
    </p>
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (1)
Back to top