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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I think part 2 has defeated me. Even though my code is spaghetti, part 1 was pretty easy to get right. Not sure why part 2 isn’t right.</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">defmodule Day14 do
  @moduledoc false

  @input File.read!("lib/input")

  def process(version \\ 1) do
    @input
    |&gt; String.split("mask = ", trim: true)
    |&gt; Enum.map(fn line -&gt; process_line(line, version) end)
  end

  def process_line(line, version) do
    tmp =
      line
      |&gt; String.split("\n", trim: true)

    mask_len = tmp |&gt; Enum.at(0) |&gt; String.length()

    tmp
    |&gt; Enum.with_index()
    |&gt; Enum.reduce({[]}, fn {sub, ndx}, acc -&gt;
      case ndx do
        0 -&gt;
          sub
          |&gt; process_mask()
          |&gt; process_helper(0, acc)

        _ -&gt;
          sub
          |&gt; process_mem_assign(mask_len, version)
          |&gt; process_helper(acc)
      end
    end)
  end

  def process_mask(mask) do
    mask
    |&gt; String.codepoints()
    |&gt; Enum.map(&amp;Integer.parse(&amp;1))
    |&gt; Enum.map(fn i -&gt;
      case i do
        :error -&gt; i
        {n, _} -&gt; n
      end
    end)
    |&gt; Enum.reverse()
  end

  def process_mem_assign(sub, mask_len, version) do
    Regex.scan(~r/(?&lt;=mem\[)\d+|(?&lt;=]\s=\s)\d+/, sub)
    |&gt; List.flatten()
    |&gt; Enum.with_index()
    |&gt; Enum.map(fn {match, ndx} -&gt; mem_assign_helper(match, ndx, version, mask_len) end)
    |&gt; List.to_tuple()
  end

  def mem_assign_helper(match, ndx, version, mask_len) do
    case {version, ndx} do
      {1, 0} -&gt;
        String.to_integer(match)

      {1, _} -&gt;
        String.to_integer(match) |&gt; Integer.digits(2) |&gt; pad_list(mask_len) |&gt; Enum.reverse()

      {2, 0} -&gt;
        String.to_integer(match) |&gt; Integer.digits(2) |&gt; pad_list(mask_len) |&gt; Enum.reverse()

      {2, _} -&gt;
        String.to_integer(match)
    end
  end

  def pad_list(val, len) do
    1..len
    |&gt; Enum.reduce(val, fn _, acc -&gt; [0 | acc] end)
  end

  def process_helper(matches, 0, acc) do
    Tuple.insert_at(acc, 0, matches)
  end

  def process_helper(matches, {mask, assignments}) do
    {mask, [matches | assignments]}
  end

  def initialize(version \\ 1) do
    process(version)
    |&gt; build_mem_map(version)
  end

  def build_mem_map(processed_lines, version \\ 1) do
    processed_lines
    |&gt; Enum.reduce(%{}, fn {mask, assignments}, memory -&gt;
      assign_memory(mask, assignments, memory, version)
    end)
  end

  def assign_memory(mask, assignments, memory, version) do
    assignments
    |&gt; Enum.map(&amp;apply_mask(&amp;1, mask, version))
    |&gt; Enum.reduce(memory, fn assign, acc -&gt; update_memory(assign, acc, version) end)
  end

  def apply_mask({address, value}, mask, version) when version == 1 do
    {address,
     value
     |&gt; Enum.zip(mask)
     |&gt; Enum.map(fn {v, m} -&gt;
       case m do
         :error -&gt; v
         _ -&gt; m
       end
     end)
     |&gt; Enum.reverse()
     |&gt; Integer.undigits(2)}
  end

  def apply_mask({address, value}, mask, version) when version == 2 do
    addresses =
      address
      |&gt; Enum.zip(mask)
      |&gt; Enum.reduce([[]], fn {a, m}, acc -&gt;
        case m do
          :error -&gt;
            acc |&gt; Enum.reduce([], fn digits, coll -&gt; [[0 | digits], [1 | digits] | coll] end)

          0 -&gt;
            acc |&gt; Enum.reduce([], fn digits, coll -&gt; [[a | digits] | coll] end)

          1 -&gt;
            acc |&gt; Enum.reduce([], fn digits, coll -&gt; [[1 | digits] | coll] end)
        end
      end)
      |&gt; Enum.map(&amp;Enum.reverse(&amp;1))
      |&gt; Enum.map(&amp;Integer.undigits(&amp;1, 2))

    {addresses, value}
  end

  def update_memory({address, value}, memory, 1) do
    Map.put(memory, address, value)
  end

  def update_memory({addresses, value}, memory, 2) do
    addresses
    |&gt; Enum.reduce(memory, fn add, acc -&gt; Map.put(acc, add, value) end)
  end

  def run do
    initialize()
    |&gt; sum_memory()
    |&gt; IO.puts()
  end

  def run2 do
    initialize(2)
    |&gt; sum_memory()
    |&gt; IO.puts()
  end

  def sum_memory(mem_map) do
    mem_map
    |&gt; Map.values()
    |&gt; Enum.sum()
  end
end

Day14.run()
Day14.run2()
</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="197529" 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/advent-of-code-2020-day-14/36199/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-197529" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197529"
                     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="197531" data-post-id="197531">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I guess the problem is in the <code>[... | coll]</code>.<br>
Can you try <code>Enum.flat_map(fn digits -&gt; [[0 | digits], [1 | digits]] end)</code><br>
and <code>Enum.map(fn digits -&gt; [a | digits] end)</code><br>
and <code>Enum.map(fn digits -&gt; [1 | digits] end)</code>?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197531" 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/advent-of-code-2020-day-14/36199/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-197531" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197531"
                     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="197534" data-post-id="197534">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I get the same total with that change.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197534" 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/advent-of-code-2020-day-14/36199/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-197534" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197534"
                     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="197566" data-post-id="197566">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Day 14 <a rel="nofollow">was interesting</a>, although I spent far too long playing with bitstrings. Probably the thing I did most differently was generating the permutations of the floating bits by counting in binary:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def permute_floating_bits(indices) do
  len = length(indices)
  size = :math.pow(2, len) |&gt; trunc

  for permutation &lt;- 0..(size - 1) do
    bits = for &lt;&lt;(bit::1 &lt;- &lt;&lt;permutation::size(len)&gt;&gt;)&gt;&gt;, do: bit
    Enum.zip(indices, bits)
  end
end
</code></pre>
<details>
<summary>
Output</summary>
<pre data-code-wrap="elixir"><code class="lang-elixir">iex(1)&gt; Day14Part2.permute_floating_bits([10, 20, 30])
[
  [{10, 0}, {20, 0}, {30, 0}],
  [{10, 0}, {20, 0}, {30, 1}],
  [{10, 0}, {20, 1}, {30, 0}],
  [{10, 0}, {20, 1}, {30, 1}],
  [{10, 1}, {20, 0}, {30, 0}],
  [{10, 1}, {20, 0}, {30, 1}],
  [{10, 1}, {20, 1}, {30, 0}],
  [{10, 1}, {20, 1}, {30, 1}]
]
</code></pre>
</details>
<p>Then used the generated index/bit output to twiddle the relevant bits in the masked value.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197566" 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/advent-of-code-2020-day-14/36199/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-197566" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197566"
                     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="197581" data-post-id="197581">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="kwando" data-post="9" data-topic="36199">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kwando/48/4092_2.png" class="avatar"> kwando:</div>
<blockquote>
<p><code>new_value = bxor(m1 &amp;&amp;&amp; value, m2)</code></p>
</blockquote>
</aside>
<p>I’m confused by this line. I think it has to do with not fully understanding the bitwise operation needed. You are applying the mask twice, once as an AND using only the X positions as 1s and once as an XOR using none of the Xs as 1s but keeping the original 1s in place, correct? Why is it not correct (for part 1) to simply replace Xs in the mask with 1s and apply <code>mask &amp;&amp;&amp; value</code>?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197581" 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/advent-of-code-2020-day-14/36199/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-197581" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197581"
                     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="197582" data-post-id="197582">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>he is actually using two masks with two different bitwise operations.<br>
But I agree that <code>(value &amp;&amp;&amp; m1) ||| m2</code> would be more consistent</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197582" 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/advent-of-code-2020-day-14/36199/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-197582" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197582"
                     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="197583" data-post-id="197583">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="stevensonmt" data-post="16" data-topic="36199">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/stevensonmt/48/20503_2.png" class="avatar"> stevensonmt:</div>
<blockquote>
<p>Why is it not correct (for part 1) to simply replace Xs in the mask with 1s and apply <code>mask &amp;&amp;&amp; value</code>?</p>
</blockquote>
</aside>
<p>The changes are replacements and replacing a bit means you need multiple steps. Consider this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">value = 0b001
mask_str = "X10"
mask = 0b110
</code></pre>
<p>How would you make sure the 0 in bit 3 stays a 0, while at the same time the 0 in bit 2 will be converted into a 1?</p>
<p>One way to do this is to unset whatever shall be replaced (<code>current &amp;&amp;&amp; unset_mask</code>) and then set the bit to the value it should be replaced with using a bitwise OR (<code>unset ||| replacement</code>)</p>
<p>So</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">import Bitwise
value = 0b10101010
replacement_str = "XXXXX110"
replacements = 0b00000110 
# From the replacement alone it's not possible to know 
# that all of the first 3 bits are to be replaced.
unset_mask = 0b11111000 # Only operate on first 3 bits

unset = value &amp;&amp;&amp; unset_mask
# 0b10101000
# every bit 1 in the unset_mask is retained from the value
# every bit 0 in the unset_mask becomes 0
new = value ||| replacements
# 0b10101110
# Given all not to be changed bits are 0 in the replacement
# only the first 3 bits are changed if necessary
</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="197583" 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/advent-of-code-2020-day-14/36199/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-197583" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197583"
                     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="197584" data-post-id="197584">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It did take me a minute to establish that was the equivalent notation, but I actually don’t understand the need for the two different masks. I just misread the prompt.</p>
<blockquote>
<p>a <code>0</code> or <code>1</code> overwrites the corresponding bit in the value</p>
</blockquote>
<p>derp. Need AND for zeroes and OR for ones.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197584" 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/advent-of-code-2020-day-14/36199/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-197584" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197584"
                     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="197585" data-post-id="197585">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>There might be a shorter/more concise ways of expressing the same operation, as others has pointed out. <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"><br>
It was just the first thing that worked and then I didn’t bother to look back at it.<br>
<a class="mention" href="/u/lostkobrakai" rel="nofollow">@LostKobrakai</a> gave a good explanation on why multiple steps are needed <img src="https://forum.elixirforum.com/images/emoji/apple/+1.png?v=15" title=":+1:" class="emoji" alt=":+1:" 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="197585" 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/advent-of-code-2020-day-14/36199/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-197585" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197585"
                     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="197586" data-post-id="197586">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Wow, great explanation. Thank you so much.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="197586" 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/advent-of-code-2020-day-14/36199/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-197586" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="197586"
                     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/36199/load_more?page=3">Load more posts (11 remaining)</a>
</div></template></turbo-stream>