Returns the Array with the same elements, but with outermost singleton dimension removed (if exists).
(self)
| 985 | |
| 986 | @property |
| 987 | def squeeze(self): |
| 988 | """ |
| 989 | Returns the Array with the same elements, but with |
| 990 | outermost singleton dimension removed (if exists). |
| 991 | """ |
| 992 | if isinstance(self.headOption(), Array.__baseIterables) and self.length == 1: |
| 993 | return self[0] |
| 994 | else: |
| 995 | return self |
| 996 | |
| 997 | @property |
| 998 | def unsqueeze(self): |
nothing calls this directly
no test coverage detected