title: continue doesn't work when using streams and the map
body: <p>I have this simple code where I use a stream and a .map() function. 
  I do a null check for the id, and inside it a add a <strong>continue</strong>
  The continue gives me an error: <strong><em>Continue outside of loop</em></strong>
  When I remove the continue I don't get an error, but I don't know if the behaviour is the same?</p>
  
  <pre><code>public List&lt;Long&gt; getIds(final Long[][] value){
       List&lt;Long&gt; list = Arrays.stream(value).map(result -&gt;{
                  final Long id = result[1];
                  if(id == null){
                      continue; // This part doesn't work (error: Continue outside of loop)
                  }
                  return id;
              }).collect(Collectors.toList());
  }
  </code></pre>
  
  <p>Any suggestion on why this happens with .streams? Whereas, when I don't use the stream I can use <strong>continue</strong>. </p>
  
  <p>The question has been marked as duplicate, but it's not the case. Using <code>return</code> surely works in <code>forEach</code>, where no return type is requested, but not in <code>map</code>.</p>