GoComet interview question

what does map function do