Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Typical to Go verbose style, but even that is better than nothing (example from the doc)

    s := []int{1, 2, 3}
    floats := slices.Map(s, func(i int) float64 { return float64(i) })


    Type inference for generic function arguments
    This is a feature we are not suggesting now, but could consider for later versions of the language.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: