Add net::map function that will execute a function for every element in a list.