GoComet Interview Question

what does map function do