From 9a860c53ef0453482f3ae2df516a3f5c49353be8 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sun, 26 May 2019 23:21:05 -0700 Subject: [PATCH] Optimized transpose() slightly. --- arrays.scad | 1 - 1 file changed, 1 deletion(-) diff --git a/arrays.scad b/arrays.scad index bd0ec5e..e2a452c 100644 --- a/arrays.scad +++ b/arrays.scad @@ -505,7 +505,6 @@ function array_dim(v, depth=undef) = // Example: // transpose([3,4,5]); // Returns: [3,4,5] function transpose(arr) = - arr==[]? [] : is_list(arr[0])? [for (i=[0:1:len(arr[0])-1]) [for (j=[0:1:len(arr)-1]) arr[j][i]]] : arr;