2 ms·
Unless I've misunderstood you, you said that, for example, `continue` cannot be implemented in terms of `map`, which simply isn't true. It's trivial.
by yakshaving_jgt 5y ago
Unless I've misunderstood you, you said that, for example, `continue` cannot be implemented in terms of `map`, which simply isn't true. It's trivial.
- bryanrasmussen 5y agoI thought the original statement was break or continue, I was actually focusing on break? As far as I know you don't break in map, you can return null but not break the loop itself. on edit: although I almost never break in a loop, I use some other construct instead. on second edit: maybe I should say iteration instead of loop but will let it stand.
- yakshaving_jgt 5y agoIt's not clear to me what you're trying to achieve. Sorry.