(x model.Value)
| 1864 | } |
| 1865 | |
| 1866 | func resultLength(x model.Value) int { |
| 1867 | vx, xvec := x.(model.Vector) |
| 1868 | if xvec { |
| 1869 | return vx.Len() |
| 1870 | } |
| 1871 | |
| 1872 | mx, xMatrix := x.(model.Matrix) |
| 1873 | if xMatrix { |
| 1874 | return mx.Len() |
| 1875 | } |
| 1876 | // Other type, return 0 |
| 1877 | return 0 |
| 1878 | } |
no test coverage detected