2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 22:38:04 +02:00

Abschnitt: lambda-Kalkül hinzugefügt

This commit is contained in:
Martin Thoma 2014-03-02 18:02:13 +01:00
parent 42ac8356e1
commit c181e1f412
6 changed files with 109 additions and 0 deletions

View file

@ -0,0 +1,6 @@
data People = Person String Int
jogi :: People
jogi = Person "Joachim Löw" 50
isAdult :: People -> Bool
isAdult (Person name age) = (age >= 18)

View file

@ -0,0 +1,4 @@
type Prename = String
type Age = Double
type Person = (Prename, Age)
type Friends = [Person]