mindly.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mindly.Social is an English speaking, friendly Mastodon instance created for people who want to use their brains and their hearts to make social networking more social. 🧠💖

Administered by:

Server stats:

1.2K
active users

#append

0 posts0 participants0 posts today
C.<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@foo" class="u-url mention">@<span>foo</span></a></span> </p><p>It&#39;s a little <a href="https://mindly.social/tags/clearer" class="mention hashtag" rel="tag">#<span>clearer</span></a> what&#39;s going on here if you put it this way:</p><p>&gt;&gt;&gt; b = []<br />&gt;&gt;&gt; b.append(b)<br />&gt;&gt;&gt; b<br />[[...]]<br />&gt;&gt;&gt; b is b[0]<br />True</p><p>So all you&#39;ve done is create a <a href="https://mindly.social/tags/list" class="mention hashtag" rel="tag">#<span>list</span></a>, and then <a href="https://mindly.social/tags/append" class="mention hashtag" rel="tag">#<span>append</span></a> (not extend) that list to itself. Since `a` and `a[0]` are the same <a href="https://mindly.social/tags/object" class="mention hashtag" rel="tag">#<span>object</span></a>, the `in` test will return True either way.</p>
GenghisKen Coar<p>And another <a href="https://ruby.social/tags/append" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>append</span></a> to the <a href="https://ruby.social/tags/introduction" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>introduction</span></a>:</p><p>More thing(s) about which I want/need to learn more:</p><p><a href="https://ruby.social/tags/OpenWRT" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OpenWRT</span></a></p>