Skip to content

Commit

Permalink
Change hintbox tag from <p> to <div> in one location
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Cox committed Mar 16, 2023
1 parent 8cd0757 commit d51af06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/starting-out.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ <h2 id="an-intro-to-lists">An intro to lists</h2>
<p>
<span class="fixed">[1,2,3]</span> is actually just syntactic sugar for <span class="fixed">1:2:3:[]</span>. <span class="fixed">[]</span> is an empty list. If we prepend <span class="fixed">3</span> to it, it becomes <span class="fixed">[3]</span>. If we prepend <span class="fixed">2</span> to that, it becomes <span class="fixed">[2,3]</span>, and so on.
</p>
<p class="hintbox"><strong>Note:</strong> <span class="fixed">[]</span>, <span class="fixed">[[]]</span> and<span class="fixed">[[],[],[]]</span> are all different things. The first one is an empty list, the seconds one is a list that contains one empty list, the third one is a list that contains three empty lists.</p>
<div class="hintbox"><strong>Note:</strong> <span class="fixed">[]</span>, <span class="fixed">[[]]</span> and<span class="fixed">[[],[],[]]</span> are all different things. The first one is an empty list, the seconds one is a list that contains one empty list, the third one is a list that contains three empty lists.</div>
<p>If you want to get an element out of a list by index, use <span class="fixed">!!</span>. The indices start at 0.</p>
<pre name="code" class="haskell: ghci">
ghci&gt; &quot;Steve Buscemi&quot; !! 6
Expand Down

0 comments on commit d51af06

Please sign in to comment.