## List cull?

Oct 26 2013 | 12:26 am
So - I've been tearing my hair out a little on this one...
Say I have two integers which are dynamic, a maximum and minimum. Let's say 9 and 12.
I also have a list of values, running from index 0 - 64, which are also dynamic.
Basically, I want to extract the indexes 9, 10, 11 and 12 from the list. I know this must have a simple solution but the list objects are running me around in circles...
- Rich

• Oct 26 2013 | 2:37 am
Many ways to do that. Here's one.
• Oct 26 2013 | 9:27 am
Woop! Thanks I think 'iter' was the missing piece of the puzzle!
- Rich
• Oct 26 2013 | 3:41 pm
Or here's another.
• Oct 26 2013 | 3:57 pm
I misread your original question, thinking you were looking to extract the values 9 through 12 rather than indices 9 through 12. To get specific indices, you probably want to use [zl lookup].
• Oct 28 2013 | 9:48 pm
Cheers Christopher!
- Rich
• Oct 31 2013 | 5:26 pm
I do have another question actually if you have any time - and that's do you know of an object that will create a range running between a max and min, or does this have to be constructed using a series of objects...Say - if I were to input 4 and 9, it would output a series of integers 4, 5, 6, 7, 8, 9?
Cheers,
- Rich
• Nov 01 2013 | 5:13 am
No such object that I know of. Ya just roll yer own.
• Nov 05 2013 | 8:44 pm
Well nicely 'rolled' then - works like a charm dude thanks...
- Rich