Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
y := make([]T, 0, len(x))
for v := range x {
y = append(y, v)
}
y = list(x)
y = x.to_a