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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group quote-modified" data-username="blatyo" data-post="10" data-topic="15325">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/blatyo/48/4554_2.png" class="avatar"> blatyo:</div>
<blockquote>
<p>|&gt; String.replace_prefix(“”, “\tKeywords = { “) |&gt; String.replace_postfix(””, " },")</p>
</blockquote>
</aside>
<p>You could also try this if you don’t like the full <code>fn</code> syntax:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">|&gt; (&amp;("\tKeywords = { " &lt;&gt; &amp;1)).()
|&gt; (&amp;(&amp;1 &lt;&gt; " }")).()
</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="89717" 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/new-to-elixir-would-appreciate-a-code-review-very-much/15325/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-89717" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="89717"
                     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="89731" data-post-id="89731">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="ghoetker" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ghoetker/120/10946_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  ghoetker
                    <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><a class="mention" href="/u/cptnkirk" rel="nofollow">@CptnKirk</a> <a class="mention" href="/u/blatyo" rel="nofollow">@blatyo</a> There is a package on Hex, PipeTo, that appears to offer much of this functionality.  Adds a new pipe <code>~&gt;</code> with a placeholder <code>_</code>, leading to functionality like the following example</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">1 ~&gt; Enum.at(1..3, _) # yields 2
</code></pre>
<p>The <code>|&gt;</code> pipe continues to function as normal. In fact, if no placeholder is used, <code>~&gt;</code> performs just like <code>|&gt;</code>. So, one could, I suppose, use <code>~&gt;</code> exclusively.</p>
<p>Haven’t played with it at all.  Until I get my feet fully under me, I’ll err on the side of the basics, but you might find it worth looking into.  Thanks for all your help.</p>
<p><a class="mention" href="/u/cptnkirk" rel="nofollow">@CptnKirk</a> Interesting difference in philosophies. Perhaps because of my limited skills, I generally follow the quote attributed to Jamie Zawinski: “Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.”</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="89731" 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/new-to-elixir-would-appreciate-a-code-review-very-much/15325/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-89731" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="89731"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>