Click here to Skip to main content
15,219,291 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: english question Pin
Member 798912216-Mar-20 11:19
MemberMember 798912216-Mar-20 11:19 
GeneralRe: english question Pin
James Curran25-Mar-20 6:40
MemberJames Curran25-Mar-20 6:40 
GeneralRe: english question Pin
OriginalGriff12-Mar-20 12:12
mveOriginalGriff12-Mar-20 12:12 
GeneralRe: english question Pin
Kris Lantz12-Mar-20 9:11
professionalKris Lantz12-Mar-20 9:11 
GeneralRe: english question Pin
Greg Utas12-Mar-20 9:39
professionalGreg Utas12-Mar-20 9:39 
GeneralRe: english question Pin
Nelek12-Mar-20 13:09
protectorNelek12-Mar-20 13:09 
JokeRe: english question Pin
harold aptroot12-Mar-20 10:38
Memberharold aptroot12-Mar-20 10:38 
GeneralRe: english question Pin
PIEBALDconsult12-Mar-20 11:02
professionalPIEBALDconsult12-Mar-20 11:02 
From what base?

Yet another poorly-worded spec. You definitely need to know which element to start with. It should at least be something along the lines of, "starting with element n, select every mth element".

To cover the variants I can think of at the moment, I would write a method which takes three parameters: the index of the first element to select, how many elements to select from that position, and the number of elements to skip to get to the next element to select.

modified 12-Mar-20 19:46pm.

GeneralRe: english question Pin
Mark_Wallace12-Mar-20 11:09
MemberMark_Wallace12-Mar-20 11:09 
GeneralRe: english question Pin
0x01AA12-Mar-20 11:15
mve0x01AA12-Mar-20 11:15 
GeneralRe: english question Pin
Mark_Wallace12-Mar-20 20:52
MemberMark_Wallace12-Mar-20 20:52 
GeneralRe: english question Pin
Member 798912212-Mar-20 13:33
MemberMember 798912212-Mar-20 13:33 
GeneralRe: english question Pin
Mark_Wallace12-Mar-20 21:04
MemberMark_Wallace12-Mar-20 21:04 
GeneralRe: english question Pin
PIEBALDconsult12-Mar-20 19:36
professionalPIEBALDconsult12-Mar-20 19:36 
GeneralRe: english question Pin
Mark_Wallace13-Mar-20 2:38
MemberMark_Wallace13-Mar-20 2:38 
GeneralRe: english question Pin
PIEBALDconsult13-Mar-20 3:31
professionalPIEBALDconsult13-Mar-20 3:31 
GeneralRe: english question Pin
Member 798912212-Mar-20 11:24
MemberMember 798912212-Mar-20 11:24 
GeneralRe: english question Pin
jsc4213-Mar-20 2:37
professionaljsc4213-Mar-20 2:37 
GeneralRe: english question Pin
Member 798912213-Mar-20 7:56
MemberMember 798912213-Mar-20 7:56 
GeneralRe: english question Pin
kmoorevs12-Mar-20 13:01
Memberkmoorevs12-Mar-20 13:01 
GeneralRe: english question Pin
Johnny J.12-Mar-20 21:31
professionalJohnny J.12-Mar-20 21:31 
GeneralRe: english question Pin
Jörgen Andersson12-Mar-20 22:49
professionalJörgen Andersson12-Mar-20 22:49 
GeneralRe: english question Pin
Nelek13-Mar-20 5:42
protectorNelek13-Mar-20 5:42 
GeneralRe: english question Pin
Stefan_Lang12-Mar-20 22:02
mveStefan_Lang12-Mar-20 22:02 
GeneralRe: english question Pin
Jörgen Andersson13-Mar-20 2:08
professionalJörgen Andersson13-Mar-20 2:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.