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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="7stud" data-post="5" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>I think <code>Map.update/4</code> should create the key <code>c: [10]</code> on line 6.</p>
</blockquote>
</aside>
<p><code>Map.update(data, :c, [10], &amp;([10|&amp;1]))</code></p>
<p>I think this is one of those cases where the choice is arbitrary because either one will sometimes be the less convenient choice.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91642" 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/updating-a-maps-values-that-are-lists/15670/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-91642" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91642"
                     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="91646" data-post-id="91646">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="rvirding" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/rvirding/120/1409_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  rvirding
                  </h3>
		          </div>
						
			          <div class="user-title">
									<span>Creator of Erlang</span>
			          </div>
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Well <code>Map.update</code> is defined as <code>update(map, key, initial, fun)</code> and the comment says:</p>
<p>" If <code>key</code> is present in <code>map</code> with value <code>value</code> , <code>fun</code> is invoked with argument <code>value</code> and its result is used as the new value of <code>key</code> . If <code>key</code> is not present in <code>map</code> , <code>initial</code> is inserted as the value of <code>key</code> . The initial value will not be passed through the update function."</p>
<p>One reason for this is that there is no predefined default value for keys so assuming it is <code>[]</code> (or anything else for that matter) would be really weird as it pre-supposes that values have a specific type.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91646" 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/updating-a-maps-values-that-are-lists/15670/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-91646" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91646"
                     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="91660" data-post-id="91660">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote group-Erlang-Core-Team" data-username="rvirding" data-post="13" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/rvirding/48/1409_2.png" class="avatar"> rvirding:</div>
<blockquote>
<p>One reason for this is that there is no predefined default value for keys so assuming it is <code>[]</code> (or anything else for that matter) would be really weird as it pre-supposes that values have a specific type.</p>
</blockquote>
</aside>
<p>It would be totally not in the spirit of Erlang &amp; Elixir to have a default value associated with a map. But it would not be unreasonable, when <code>key</code> does not have an entry, to pass <code>initial</code> into <code>fun</code>. I prefer it the way it is, explicitly specifying <code>initial</code>, but the other way would not have been wrong.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91660" 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/updating-a-maps-values-that-are-lists/15670/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-91660" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91660"
                     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="91683" data-post-id="91683">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="7stud" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  7stud
                    <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">
								<aside class="quote group-Erlang-Core-Team" data-username="rvirding" data-post="13" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/rvirding/48/1409_2.png" class="avatar"> rvirding:</div>
<blockquote>
<p>One reason for this is that there is no predefined default value for keys so assuming it is <code>[]</code> (or anything else for that matter) would be really weird</p>
</blockquote>
</aside>
<p>Who the heck proposed that the default value for a key should be an empty list?  Please quote somebody.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91683" 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/updating-a-maps-values-that-are-lists/15670/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-91683" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91683"
                     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="91685" data-post-id="91685">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="7stud" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  7stud
                    <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">
								<aside class="quote no-group" data-username="sribe" data-post="12" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/s/439d5e/48.png" class="avatar"> sribe:</div>
<blockquote>
<p>I think this is one of those cases where the choice is arbitrary because either one will sometimes be the less convenient choice.</p>
</blockquote>
</aside>
<p>I don’t believe that at all.  Perl is one of the, if not the, pre-eminent text processing languages.  It has a feature called autovivification, where if you treat a value returned by a key as a list, then Perl creates the list for you and assigns it to the key, or if you treat the value returned by a key as a hash, then Perl creates a hash for you and assigns it to the key.  I’ve never heard anyone in the Perl world say, “Boy, this autovivification really sucks.”  Ruby recognized that autovivification was a great feature and incorporated it into <code>Hash.new</code>.  And, as far as I can tell, Elixir is the rubification of erlang, so it makes sense to me that the great features of Ruby would be features in Elixir as well.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91685" 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/updating-a-maps-values-that-are-lists/15670/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-91685" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91685"
                     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="91686" data-post-id="91686">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="7stud" data-post="15" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>Who the heck proposed that the default value for a key should be an empty list? Please quote somebody.</p>
</blockquote>
</aside>
<p>You did not propose that exactly, but youd did mention the Ruby ability to set a default value on a per-map basis when the map is created.</p>
<p>(Later you called the fact that update does not pass the default to the fun a “terrible oversight” which I think is just wrong. As I said in an earlier post, it’s one of those choices where neither will be the most convenient all the time. And I prefer the way Elixir does it now because I think it’s more explicit what happens, one value for what happens if the key is not set, one function for what happens if the key is set, with no implicit connection between the two.)</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91686" 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/updating-a-maps-values-that-are-lists/15670/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-91686" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91686"
                     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="91687" data-post-id="91687">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group quote-modified" data-username="7stud" data-post="16" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>…where if you treat a value returned by a key as a list, then Perl creates the list for you and assigns it to the key, or if you treat the value returned by a key as a hash, then Perl creates a hash for you and assigns it to the key.</p>
</blockquote>
</aside>
<p>Elixir is not Perl. The phrase “if you treat a value returned by a key as a list” makes no sense in the Elixir context–you’re basically saying “if you expect of type XXX and you get nil, then automagically create an XXX and substitute it”, and that is <em>exactly</em> the kind of implicit magic that Elixir tries to avoid, by design.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91687" 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/updating-a-maps-values-that-are-lists/15670/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-91687" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91687"
                     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="91689" data-post-id="91689">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="7stud" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  7stud
                    <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">
								<aside class="quote no-group" data-username="sribe" data-post="18" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/s/439d5e/48.png" class="avatar"> sribe:</div>
<blockquote>
<p>that is <em>exactly</em> the kind of implicit magic that Elixir tries to avoid, by design.</p>
</blockquote>
</aside>
<p>Elixir streams aren’t implicit magic?  What about the Keylist syntax <code>[a: 1, b: 2]</code>?  Or, the implicit magic involved in the syntax <code>&amp;(&amp;1*&amp;1)</code>?  From what I’ve seen, Elixir incorporates black magic frequently.</p>
<p>In any case, thanks to all who commented.  I was searching for a feature that doesn’t exist, and I will have to make do.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91689" 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/updating-a-maps-values-that-are-lists/15670/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-91689" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91689"
                     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="91690" data-post-id="91690">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="7stud" data-post="19" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>Elixir streams aren’t implicit magic? What about the Keylist syntax <code>[a: 1, b: 2]</code> ? Or, the implicit magic involved in the syntax <code>&amp;(&amp;1*&amp;1)</code> ? From what I’ve seen, Elixir incorporates black magic frequently.</p>
</blockquote>
</aside>
<p>Don’t confuse syntactic sugar and implicit magic–the examples you post are all completely explicit.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91690" 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/updating-a-maps-values-that-are-lists/15670/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-91690" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91690"
                     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="91777" data-post-id="91777">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="7stud" data-post="19" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>Elixir streams aren’t implicit magic?</p>
</blockquote>
</aside>
<p>Not remotely?  <code>Stream</code>’s are just a function composition pattern that is common in most languages (built in to the very fabric of some like Haskell) but are entirely non-opaque.</p>
<aside class="quote no-group" data-username="7stud" data-post="19" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>What about the Keylist syntax <code>[a: 1, b: 2]</code> ?</p>
</blockquote>
</aside>
<p>Syntax sugar that turns <code>a: 1</code> into <code>{:a, 1}</code> (though the fact you can’t freely intermix those constantly drives me crazy).</p>
<aside class="quote no-group" data-username="7stud" data-post="19" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>Or, the implicit magic involved in the syntax <code>&amp;(&amp;1*&amp;1)</code> ?</p>
</blockquote>
</aside>
<p>Syntax sugar that turns that in to <code>fn a -&gt; a*a end</code>, a useful and common shortening for something very commonly used.</p>
<aside class="quote no-group" data-username="7stud" data-post="19" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>From what I’ve seen, Elixir incorporates black magic frequently.</p>
</blockquote>
</aside>
<p>Elixir has plenty of inconsistent bits in it’s syntax, and other than the ordering of <code>a: 1</code> things none of the above is that.  <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"></p>
<aside class="quote no-group" data-username="7stud" data-post="19" data-topic="15670">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/7/57b2e6/48.png" class="avatar"> 7stud:</div>
<blockquote>
<p>In any case, thanks to all who commented. I was searching for a feature that doesn’t exist, and I will have to make do.</p>
</blockquote>
</aside>
<p>It’s trivial to make your own yeah, though I too always preferred if the <code>initial</code> in <code>update/4</code> was actually the <code>default</code> passed in so I can properly dynamically create either the start or the next in the function without incurring a cost on initial potentially unused construction every call.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="91777" 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/updating-a-maps-values-that-are-lists/15670/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-91777" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="91777"
                     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/15670/load_more?page=3">Load more posts (3 remaining)</a>
</div></template></turbo-stream>