title: Nested collections lambda iteration
body: <p>Suppose I have an object containing a collection,  each elements on the said collection contains a collection, and each collection contains a collection.</p>
  
  <p>And I want to iterate on the deepest objects and apply the same code to it.</p>
  
  <p>The imperative way is trivial, but is there a way to lambda-fy this all?</p>
  
  <p>Here is how the code looks today:</p>
  
  <pre><code>My object o;
  SecretType computedThingy = 78;
  for (FirstLevelOfCollection coll : o.getList()) {
    for (SecondLevelOfCollection colColl : coll.getSet()) {
      for (MyCoolTinyObjects mcto : colColl.getFoo()) {
        mcto.setSecretValue(computedThingy);
      }
    }
  }
  </code></pre>
  
  <p>I can see how to make a lambda out of the deepest loop:</p>
  
  <pre><code>colColl.getFoo().stream().forEach(x -&gt; x.setSecretValue(computedThingy)
  </code></pre>
  
  <p>But can I do more?</p>