Differences
This shows you the differences between two versions of the page.
minimum_function [2014/02/22 19:42] nikolaj old revision restored (2014/02/13 16:13) |
minimum_function [2014/02/22 19:48] nikolaj |
||
---|---|---|---|
Line 8: | Line 8: | ||
==== Discussion ==== | ==== Discussion ==== | ||
- | === Code === | ||
- | <code haskell> | ||
- | mnmInt :: [Int] -> Int | ||
- | mnmInt [] = error "empty list" | ||
- | mnmInt [x] = x | ||
- | mnmInt (x:xs) = min x (mnmInt xs) | ||
- | </code> | ||
==== Parents ==== | ==== Parents ==== | ||
=== Context === | === Context === |