<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>Posts by Rito Ghosh</title>
<link>https://ritoghosh.com/TILs_index.html</link>
<atom:link href="https://ritoghosh.com/TILs_index.xml" rel="self" type="application/rss+xml"/>
<description></description>
<generator>quarto-1.10.18</generator>
<lastBuildDate>Thu, 06 Jul 2023 18:30:00 GMT</lastBuildDate>
<item>
  <title>2023-Jul-07</title>
  <dc:creator>Ritobrata Ghosh</dc:creator>
  <link>https://ritoghosh.com/TILs/2023-Jul-07/</link>
  <description><![CDATA[ 





<ol type="1">
<li>Learned that procedures as data can also be seen and used in Haskell, as well as Scheme/LISP.</li>
</ol>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode numberSource haskell number-lines code-with-copy"><code class="sourceCode haskell"><span id="cb1-1">ghci<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">head</span> [(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>), (<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">10</span>), square] <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span></span>
<span id="cb1-2"><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">15</span></span></code></pre></div></div>
<p>I got this from Dmitrii K.’s Haskell course on YouTube. <a href="https://www.youtube.com/watch?v=6MsQcUprO9o">video</a></p>



<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-reuse"><h2 class="anchored quarto-appendix-heading">Reuse</h2><div class="quarto-appendix-contents"><div>CC-BY-NC-SA</div></div></section></div> ]]></description>
  <category>functional-programming</category>
  <category>haskell</category>
  <category>til</category>
  <guid>https://ritoghosh.com/TILs/2023-Jul-07/</guid>
  <pubDate>Thu, 06 Jul 2023 18:30:00 GMT</pubDate>
</item>
</channel>
</rss>
