2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Viel zu Haskell ergänzt; Funktionen höherer Ordnung beschrieben

This commit is contained in:
Martin Thoma 2014-02-04 14:07:24 +01:00
parent aa2454bb30
commit 78368fa6e9
17 changed files with 220 additions and 24 deletions

View file

@ -1,3 +1,4 @@
binom :: (Eq a, Num a, Num a1) => a -> a -> a1
binom n k =
if (k==0) || (k==n)
then 1