title: Get value from nested tuple
body: <p>Here's a nested tuple from some Erlang library:</p>
  
  <pre><code>tuple = {:Certificate,
            {:TBSCertificate,
             :v3,
             3464270192823392628,
             {:AlgorithmIdentifier, {1, 2, 840, 113549, 1, 1, 11}, &lt;&lt;5, 0&gt;&gt;},
             {:Validity, {:utcTime, '160428162930Z'}, {:utcTime, '170528162930Z'}},
             :asn1_NOVALUE,
             :asn1_NOVALUE,
             :asn1_NOVALUE,
             :asn1_NOVALUE,
             :asn1_NOVALUE}}
  </code></pre>
  
  <p>In order to find the <code>:Validity</code> tuple, I need to do</p>
  
  <pre><code>tuple |&gt; elem(1) |&gt; elem(4)
  </code></pre>
  
  <p>I can do a pattern matching, but there's too much <code>:asn1_NOVALUE</code> in the 
  end I just want to ignore them.</p>
  
  <p>Is there other way in Erlang/Elixir to get the nested tuple value? Something like</p>
  
  <pre><code>get_in(tuple, [:Certificate, :Validity])
  </code></pre>