// Given UV coordinates on the surface of a sphere u=[0,1), v=[0,1) computes the 3D location.
function spherePoint(u, v)
= vector(-cos(u*2.0*pi) * sin(v*2.0*pi), cos(v*2.0*pi), sin(u*2.0*pi) * sin(v*2.0*pi));
= meshFromUV(spherePoint, segments);
For example, look at https://www.rust-lang.org/en-US/ or https://golang.org/. They both immediately give you a small taste of what the language looks like.