Apply a callable to all items at once. :param f: Callable to be applied. :return: Workplane object with f applied to all items.
(self: T, f: Callable[[Iterable[CQObject]], Iterable[CQObject]])
| 4478 | return self.newObject(map(f, self.objects)) |
| 4479 | |
| 4480 | def apply(self: T, f: Callable[[Iterable[CQObject]], Iterable[CQObject]]) -> T: |
| 4481 | """ |
| 4482 | Apply a callable to all items at once. |
| 4483 | |
| 4484 | :param f: Callable to be applied. |
| 4485 | :return: Workplane object with f applied to all items. |
| 4486 | """ |
| 4487 | |
| 4488 | return self.newObject(f(self.objects)) |
| 4489 | |
| 4490 | def sort(self: T, key: Callable[[CQObject], Any]) -> T: |
| 4491 | """ |