diff options
| author | Paul Buetow <paul@buetow.org> | 2024-08-24 19:42:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-08-24 19:42:38 +0300 |
| commit | e1ef1b5f3e21e84fcca29bedee6d1af154d61169 (patch) | |
| tree | d3873e7e9fb474c99dc2a71ed9bc90f82cba4481 /gemfeed/2010-04-09-standard-ml-and-haskell.html | |
| parent | 1891cb99a0eff5fd497edb44c435acdcaf5d8299 (diff) | |
Update content for html
Diffstat (limited to 'gemfeed/2010-04-09-standard-ml-and-haskell.html')
| -rw-r--r-- | gemfeed/2010-04-09-standard-ml-and-haskell.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gemfeed/2010-04-09-standard-ml-and-haskell.html b/gemfeed/2010-04-09-standard-ml-and-haskell.html index 6b3b5e89..89c1b5f0 100644 --- a/gemfeed/2010-04-09-standard-ml-and-haskell.html +++ b/gemfeed/2010-04-09-standard-ml-and-haskell.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline' id='StandardMLandHaskell'>Standard ML and Haskell</h1><br /> +<h1 style='display: inline' id='standard-ml-and-haskell'>Standard ML and Haskell</h1><br /> <br /> <span class='quote'>Published at 2010-04-09T22:57:36+01:00</span><br /> <br /> @@ -18,7 +18,7 @@ <br /> <span>Haskell is also a "pure functional" programming language, whereas SML also makes explicit use of imperative concepts. I am by far not a specialist in either of these languages, but here are a few functions implemented in both SML and Haskell:</span><br /> <br /> -<h2 style='display: inline' id='Definingamultidatatype'>Defining a multi-data type</h2><br /> +<h2 style='display: inline' id='defining-a-multi-data-type'>Defining a multi-data type</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -45,7 +45,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#ff0000"> </font><b><font color="#ffffff">deriving</font></b><font color="#ff0000"> </font><b><font color="#F35E1E">Show</font></b> </pre> <br /> -<h2 style='display: inline' id='Processingamulti'>Processing a multi</h2><br /> +<h2 style='display: inline' id='processing-a-multi'>Processing a multi</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -74,7 +74,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#ff0000"> </font><font color="#F3E651">(</font><b><font color="#F35E1E">Union</font></b><font color="#ff0000"> </font><font color="#F3E651">(</font><b><font color="#F35E1E">Union</font></b><font color="#ff0000"> </font><font color="#F3E651">(</font><b><font color="#F35E1E">Elem</font></b><font color="#ff0000"> </font><font color="#bb00ff">4</font><font color="#F3E651">)</font><font color="#ff0000"> </font><font color="#F3E651">(</font><b><font color="#F35E1E">Elem</font></b><font color="#ff0000"> </font><font color="#bb00ff">4</font><font color="#F3E651">))</font><font color="#ff0000"> </font><b><font color="#F35E1E">Empty</font></b><font color="#F3E651">))))</font><font color="#ff0000"> w</font> </pre> <br /> -<h2 style='display: inline' id='Simplifyfunction'>Simplify function</h2><br /> +<h2 style='display: inline' id='simplify-function'>Simplify function</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -116,7 +116,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#ff0000">simplify x </font><font color="#F3E651">=</font><font color="#ff0000"> x</font> </pre> <br /> -<h2 style='display: inline' id='Deleteall'>Delete all</h2><br /> +<h2 style='display: inline' id='delete-all'>Delete all</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -145,7 +145,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#ff0000"> delete_all’ x </font><font color="#F3E651">=</font><font color="#ff0000"> x</font> </pre> <br /> -<h2 style='display: inline' id='Deleteone'>Delete one</h2><br /> +<h2 style='display: inline' id='delete-one'>Delete one</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -191,7 +191,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#ff0000"> delete_one’ x </font><font color="#F3E651">=</font><font color="#ff0000"> </font><font color="#F3E651">(</font><font color="#ff0000">x</font><font color="#F3E651">,</font><font color="#ff0000"> </font><b><font color="#F35E1E">False</font></b><font color="#F3E651">)</font> </pre> <br /> -<h2 style='display: inline' id='Higherorderfunctions'>Higher-order functions</h2><br /> +<h2 style='display: inline' id='higher-order-functions'>Higher-order functions</h2><br /> <br /> <span>The first line is always the SML code, the second line the Haskell variant:</span><br /> <br /> |
