Learning to vectorize functions, use types.