Difference between revisions of "FP Solution"

From Marek Běhálek Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">
 
Some text in the div here.
 
Some text in the div here.
{| class="wikitable sortable mw-collapsible"
+
<syntaxhighlight lang="Haskell">
! Hello
+
fact1 :: Int -> Int
! World
+
fact1 0 = 1
|-
+
fact1 n = n * fact1 (n-1)
| Content
+
 
| Goes
+
</syntaxhighlight>
|-
 
| In
 
| Here
 
|}
 
 
Some more text in the div.
 
Some more text in the div.
 
</div>
 
</div>
  
 
<div style="clear:both;"></div>
 
<div style="clear:both;"></div>

Revision as of 09:55, 23 September 2020

fact1 :: Int -> Int
fact1 0 = 1
fact1 n = n * fact1 (n-1)

Collapsible table in collapsed div


Some text in the div here.

fact1 :: Int -> Int
fact1 0 = 1
fact1 n = n * fact1 (n-1)

Some more text in the div.