15,606,438 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.

 Re: If it's not one thing, it's another... Michael Martin25-May-16 20:53 Michael Martin 25-May-16 20:53
 Re: If it's not one thing, it's another... Nagy Vilmos25-May-16 23:32 Nagy Vilmos 25-May-16 23:32
 Re: If it's not one thing, it's another... phil.o25-May-16 22:17 phil.o 25-May-16 22:17
 Re: If it's not one thing, it's another... Brisingr Aerowing26-May-16 6:47 Brisingr Aerowing 26-May-16 6:47
 Re: If it's not one thing, it's another... #realJSOP26-May-16 1:23 #realJSOP 26-May-16 1:23
 Coding puzzle virang_2125-May-16 13:32 virang_21 25-May-16 13:32
 Re: Coding puzzle PIEBALDconsult25-May-16 13:56 PIEBALDconsult 25-May-16 13:56
 Re: Coding puzzle ImHere2Learn25-May-16 18:49 ImHere2Learn 25-May-16 18:49
 I'm learning ES6: JavaScript ```function* consec(array) { let arr = array.splice(0); while (arr.length > 0) { let nextSeqIndex = arr.findIndex((v, i, a) => v != a[0] + i); if (nextSeqIndex === -1) return yield arr; yield arr.splice(0, nextSeqIndex); } } let array = [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 22]; for (let sub of consec(array)) { console.log(sub); }``` code@repl.it[^]
 Re: Coding puzzle Staffan Bruun25-May-16 19:48 Staffan Bruun 25-May-16 19:48
 Re: Coding puzzle Staffan Bruun25-May-16 20:31 Staffan Bruun 25-May-16 20:31
 Re: Coding puzzle Mycroft Holmes25-May-16 22:11 Mycroft Holmes 25-May-16 22:11
 Re: Coding puzzle Staffan Bruun25-May-16 22:33 Staffan Bruun 25-May-16 22:33
 Re: Coding puzzle Kenneth Haugland25-May-16 21:45 Kenneth Haugland 25-May-16 21:45
 Re: Coding puzzle Anthony Mushrow25-May-16 23:14 Anthony Mushrow 25-May-16 23:14
 Re: Coding puzzle virang_2126-May-16 13:01 virang_21 26-May-16 13:01
 Re: Coding puzzle BillWoodruff25-May-16 23:48 BillWoodruff 25-May-16 23:48
 Re: Coding puzzle virang_2126-May-16 12:59 virang_21 26-May-16 12:59
 Re: Coding puzzle Eytukan26-May-16 0:23 Eytukan 26-May-16 0:23
 Re: Coding puzzle Staffan Bruun26-May-16 3:10 Staffan Bruun 26-May-16 3:10
 Re: Coding puzzle PIEBALDconsult26-May-16 17:29 PIEBALDconsult 26-May-16 17:29
 SalesForce Marc Clifton25-May-16 12:56 Marc Clifton 25-May-16 12:56
 Re: SalesForce Mark_Wallace25-May-16 13:16 Mark_Wallace 25-May-16 13:16
 Re: SalesForce Marc Clifton25-May-16 13:23 Marc Clifton 25-May-16 13:23
 Re: SalesForce Mycroft Holmes25-May-16 14:25 Mycroft Holmes 25-May-16 14:25
 Re: SalesForce Slacker00726-May-16 2:08 Slacker007 26-May-16 2:08
 Last Visit: 31-Dec-99 18:00     Last Update: 20-Mar-23 10:20 Refresh ᐊ Prev1...11296112971129811299113001130111302113031130411305 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

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