Jacques Smuts
04/05/2019, 1:36 PMJacques Smuts
04/05/2019, 1:36 PMreturn instead of `continue`/`break`?ribesg
04/05/2019, 1:38 PMribesg
04/05/2019, 1:38 PMbreak or continue in forEach?Jacques Smuts
04/05/2019, 1:39 PMJacques Smuts
04/05/2019, 1:40 PMribesg
04/05/2019, 1:40 PMlouiscad
04/05/2019, 2:07 PMrepeat is inline and doesn't really cost more than a for or while looplouiscad
04/05/2019, 2:09 PMrepeat is a just a higher order function (a function that takes another one, called a lambda), while for, while, `do`/`while` are part of the control flow, similar to `if`/`else`, but with the added fact that they can loop.Jacques Smuts
04/05/2019, 2:09 PMcontinue should be applicable?louiscad
04/05/2019, 2:10 PMcontinue works only for raw control flow constructs like whileJacques Smuts
04/05/2019, 2:11 PMlouiscad
04/05/2019, 2:11 PMcontinue though, so in practice, there's not much differencelouiscad
04/05/2019, 2:12 PMif, but you can't jump out of a lambda out of nowhere, unless that lambda is inline and you return to the function it's inlined in.Jacques Smuts
04/05/2019, 2:15 PM