From ce724d2691480b62e4ca0897d450aad2c5625444 Mon Sep 17 00:00:00 2001
From: Revar Desmera <revarbat@gmail.com>
Date: Thu, 19 Sep 2019 02:41:59 -0700
Subject: [PATCH] Added start= arg for idx()

---
 arrays.scad | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arrays.scad b/arrays.scad
index 0081b5f..acad4e0 100644
--- a/arrays.scad
+++ b/arrays.scad
@@ -393,12 +393,13 @@ function list_fit(v, length, fill) =
 // Arguments:
 //   list = The list to returns the index range of.
 //   step = The step size to stride through the list.  Default: 1
-//   end= The delta from the end of the list.  Default: -1
+//   end = The delta from the end of the list.  Default: -1
+//   start = The starting index.  Default: 0
 // Example(2D):
 //   colors = ["red", "green", "blue"];
 //   for (i=idx(colors)) right(20*i) color(colors[i]) circle(d=10);
-function idx(list, step=1, end=-1) =
-	[0 : step : len(list)+end];
+function idx(list, step=1, end=-1,start=0) =
+	[start : step : len(list)+end];
 
 
 // Function: enumerate()