Maps f onto the elements of the sequence. >>> seq([1, 2, 3, 4]).map(lambda x: x * -1) [-1, -2, -3, -4] :param func: function to map with :return: sequence with func mapped onto it
(self, func)
| 483 | return self._transform(transformations.symmetric_difference_t(other)) |
| 484 | |
| 485 | def map(self, func): |
| 486 | """ |
| 487 | Maps f onto the elements of the sequence. |
| 488 | |
| 489 | >>> seq([1, 2, 3, 4]).map(lambda x: x * -1) |
| 490 | [-1, -2, -3, -4] |
| 491 | |
| 492 | :param func: function to map with |
| 493 | :return: sequence with func mapped onto it |
| 494 | """ |
| 495 | return self._transform(transformations.map_t(func)) |
| 496 | |
| 497 | def select(self, func): |
| 498 | """ |