<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="252447" data-post-id="252447">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="egze" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/egze/120/13522_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  egze
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Very cool library <img src="https://forum.elixirforum.com/images/emoji/apple/clap.png?v=15" title=":clap:" class="emoji" alt=":clap:" loading="lazy" width="20" height="20">  I’m wondering what is the correct way to reduce some paths to a pathex at runtime?</p>
<p>For example I have this list of paths <code>["quiz", "questions", 0]</code> and I want to create a pathex at runtime.</p>
<p>Now I’d do something like this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">["quiz", "questions", 0]
|&gt; Enum.map(&amp;Pathex.path/1)
|&gt; Enum.reduce(&amp;Pathex.concat(&amp;2, &amp;1))
</code></pre>
<p>Is there a way how I can have an empty pathex so I can reduce in one go?</p>
<p>Something like this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">["quiz", "questions", 0]
|&gt; Enum.reduce(Pathex.empty(), &amp;Pathex.concat(&amp;2, Pathex.path(&amp;1)))
</code></pre>
<p>Or is there even a better way?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="252447" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-252447" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="252447"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #11"></div>
  </section>
</div>
    <div class="postbit" id="252452" data-post-id="252452">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="hst337" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  hst337
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi, that’s a good question. First of all, I’d suggest to define as much paths as possible in compile time, because <code>Pathex</code> tries to optimize as much as possible in compile time. You can take a look at <a href="https://hexdocs.pm/pathex/basics.html#performance-tips" rel="noopener nofollow ugc">this doc</a> to see the explanations about optimizations. The general idea is to provide constants as arguments, specify <a href="https://hexdocs.pm/pathex/modifiers.html" rel="noopener nofollow ugc">mods</a> or <a href="https://hexdocs.pm/pathex/modifiers.html#annotations" rel="noopener nofollow ugc">annotate</a> the path.</p>
<p>Otherwise, for creating paths in runtime you can refer to one of these examples</p>
<p>The most efficient way to do this is:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">use Pathex
import Pathex.Lenses, only: [matching: 1]

case items do
  [head | tail] -&gt;
    Enum.reduce(tail, path(head), fn right, left -&gt; left ~&gt; path(right) end)
  [] -&gt;
    matching(_)
end
</code></pre>
<p>Or the shorter solution</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">use Pathex
import Pathex.Lenses, only: [matching: 1]

["quiz", "questions", 0]
|&gt; Enum.reduce(matching(_), fn r, l -&gt; l ~&gt; r end)
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="252452" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-252452" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="252452"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #12"></div>
  </section>
</div>
    <div class="postbit" id="252453" data-post-id="252453">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="egze" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/egze/120/13522_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  egze
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Thanks. Missed the <code>matching/1</code></p>
<p>Do you think there’s a room for <code>Pathex.new/1</code>?</p>
<p>Thinking about:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def new(list \\ [])
  list
  |&gt; Enum.reduce(matching(_), fn r, l -&gt; l ~&gt; r end)
end
</code></pre>
<p>I would be heppy to contribute. I get the compile time benefits, but sometimes it’s the way it is <img src="https://forum.elixirforum.com/images/emoji/apple/man_shrugging.png?v=15" title=":man_shrugging:" class="emoji" alt=":man_shrugging:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="252453" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-252453" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="252453"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #13"></div>
  </section>
</div>
    <div class="postbit" id="252454" data-post-id="252454">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="hst337" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  hst337
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yeah, that’s a good idea. I already have this in my TODO list, I’ll try to prioritize it for 2.2 or 2.3 versions then.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="252454" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-252454" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="252454"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #14"></div>
  </section>
</div>
    <div class="postbit" id="256482" data-post-id="256482">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="hst337" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  hst337
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi, I’ve just released 2.2.0, you can now use this function:</p><aside class="onebox allowlistedgeneric" data-onebox-src="https://pathex.hexdocs.pm/Pathex.Accessibility.html">
  <header class="source">

      <a href="https://pathex.hexdocs.pm/Pathex.Accessibility.html" target="_blank" rel="noopener nofollow ugc">pathex.hexdocs.pm</a>
  </header>

  <article class="onebox-body">
    

<h3><a href="https://pathex.hexdocs.pm/Pathex.Accessibility.html" target="_blank" rel="noopener nofollow ugc">Pathex.Accessibility — Pathex v2.6.1</a></h3>



  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>
 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="256482" data-batch-url="/posts/batch_likers">
                        5
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-256482" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="256482"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #15"></div>
  </section>
</div>
    <div class="postbit" id="259040" data-post-id="259040">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="hst337" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  hst337
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<h3><a name="p-259040-pathex-23-release-is-here-tada-1" class="anchor" href="#p-259040-pathex-23-release-is-here-tada-1" aria-label="Heading link" rel="nofollow"></a>Pathex 2.3 release is here <img src="https://forum.elixirforum.com/images/emoji/apple/tada.png?v=15" title=":tada:" class="emoji" alt=":tada:" loading="lazy" width="20" height="20"></h3>
<p>Nothing special, just</p>
<ol>
<li><code>Pathex.Short</code> for shorter path definition. One can use just <code>:x / : y</code> instead of <code>path :x / :y</code> when using <code>Pathex.Short</code></li>
<li><code>Pathex.pattern</code> for creating patterns from inlined paths. For example,</li>
</ol>
<pre data-code-wrap="elixir"><code class="lang-elixir">use Pathex, default_mod: :json
import Pathex

pattern(four, path :x / :y / :z / 3) = %{x: %{y: %{z: [1, 2, 3, 4]}}}
</code></pre>
<ol start="3">
<li><code>Pathex</code> now can be <code>use</code>-d inside functions or anything like this. This is now tested and supported.</li>
<li>Paths inlining is now detected for aliased, imported and macro calls. This is done using <code>Macro.Env.lookup*</code> functions, therefore pathex is compatible only with elixir 1.13 or higher</li>
<li>Spec fixes here and there, project formatting.</li>
</ol>
<hr>
<p>By the way, I’ve tested this release against <code>gradient</code> (from <a href="https://github.com/josefs/Gradualizer" rel="noopener nofollow ugc">gradualizer</a> project) and it seemed to be able to find some errors in specs, while failing to complete checking with exception and a bunch of false positives. And I’ve used <a href="https://hexdocs.pm/mix_unused/index.html" rel="noopener nofollow ugc">mix_unused</a> tool to find some unused functions (which helped me a lot)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="259040" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-259040" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="259040"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #16"></div>
  </section>
</div>
    <div class="postbit" id="261172" data-post-id="261172">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="hst337" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  hst337
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<h3><a name="p-261172-pathex-240-release-1" class="anchor" href="#p-261172-pathex-240-release-1" aria-label="Heading link" rel="nofollow"></a>Pathex 2.4.0 release</h3>
<p>This release contains bug fixes and improvements in negative indexes for lists and tuples and improvements for <code>force_*</code> operations. For more information, refer to <a href="https://github.com/hissssst/pathex/blob/master/CHANGELOG.md#24" rel="noopener nofollow ugc">changelog</a></p>
<p>For example, force_setting a value in list used to result in something like</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">iex&gt; force_set! [1, 2], path(4), 0
[1, 2, 0]
</code></pre>
<p>And now the empty space is filled with <code>nil</code> like this</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">iex&gt; force_set! [1, 2], path(4), 0
[1, 2, nil, nil, 0]
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="261172" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-261172" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="261172"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #17"></div>
  </section>
</div>
    <div class="postbit" id="271735" data-post-id="271735">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="hst337" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  hst337
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<h3><a name="p-271735-pathex-250-release-1" class="anchor" href="#p-271735-pathex-250-release-1" aria-label="Heading link" rel="nofollow"></a>Pathex 2.5.0 release</h3>
<p>This release contains <strong>performance improvements</strong>, bug fixes and special functions for creating <code>for_update</code>-friendly lenses for structures and records. For more information, refer to <a href="https://github.com/hissssst/pathex/blob/master/CHANGELOG.md" rel="noopener nofollow ugc">changelog</a></p>
<p>For example,</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">iex&gt; import Pathex.Accessibility
iex&gt; uri_scheme_lens = from_struct(URI, :scheme)
iex&gt; %URI{scheme: "http"} == Pathex.force_set(%{}, uri_scheme_lens, "http")
true
</code></pre>
<p>This is useful for doing deeply nested <code>force_set</code> and <code>force_update</code> operations</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="271735" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-271735" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="271735"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #18"></div>
  </section>
</div>
    <div class="postbit" id="326611" data-post-id="326611">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="RemyXRenard" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/RemyXRenard/120/32356_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  RemyXRenard
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I hope it’s okay to resurrect this thread. I have a quick question about Pathex. I feel like I may be missing something simple.</p>
<p>If I have a map → list → map structure, is there a way to return multiple keys from the inner map?</p>
<p>e.g.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">stuff = %{ 
:key =&gt; "value",
:key2 =&gt; [ %{ :foo =&gt; "bar", :foo2 =&gt; "bar", :foo3 =&gt; "'baz"}, 
           %{ :foo =&gt; "baz", :foo2 =&gt; "fizz", :foo3 =&gt; "baz"}]
}

Pathex.view!(stuff, path(:key2) ~&gt;  star() ~&gt; matching(%{:foo3 =&gt; _}))

</code></pre>
<p>The above returns <code>[%{foo: "bar", foo2: "bar", foo3: "'baz"}, %{foo: "baz", foo2: "fizz", foo3: "baz"}]</code><br>
Can I return the values for :foo and :foo2 but not foo3? Is it only matching on the value?</p>
<p>I can add <code>|&gt; Enum.flat_map(&amp; Map.take(&amp;1, [:foo, :foo2]))</code> to get what I need, just checking that I’m not missing some magic in the match.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="326611" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-326611" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="326611"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #19"></div>
  </section>
</div>
    <div class="postbit" id="342262" data-post-id="342262">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Asd" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Asd
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Try using <a href="https://hexdocs.pm/pathex/Pathex.html#at/3" rel="noopener nofollow ugc">Pathex.at/3</a> like this</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Pathex.at(stuff, path(:key2) ~&gt; star() ~&gt; matching(%{foo3: _}), &amp;Map.take(&amp;1, [:foo, :foo2]))
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="342262" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/pathex-a-library-for-performing-fast-actions-with-nested-data-structures/47754/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-342262" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="342262"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #20"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/47754/load_more?page=3">Load more posts (2 remaining)</a>
</div></template></turbo-stream>