improve map func example, return a new same type slice.