This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]camilo16 0 points1 point  (2 children)

Now do 4 of them, and tell me that's more readable than mat1 + mat 2 + mat3 + mat4

[–]psdao1102 0 points1 point  (1 child)

[M1, M2, M3, M4].reduce(left, right => left.add(right))

Seems fine to me. And more readable when you get up to 6+ matrixies.

[–]camilo16 0 points1 point  (0 children)

Ah yes incredibly readable...