From a51e3563fee129e12720a45302522e01fdcee111 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Sat, 17 Aug 2019 01:14:00 -0700 Subject: [PATCH] Added ability to list_insert() to multiple positions at once. --- arrays.scad | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/arrays.scad b/arrays.scad index 5f489fc..a994c3c 100644 --- a/arrays.scad +++ b/arrays.scad @@ -245,11 +245,33 @@ function list_remove(list, elements) = // list_insert(list, pos, elements); // Description: // Insert `elements` into `list` before position `pos`. -function list_insert(list, pos, elements) = - concat( - slice(list,0,pos), - elements, - (pos