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:
parent
42ac8356e1
commit
c181e1f412
6 changed files with 109 additions and 0 deletions
|
@ -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)
|
|
@ -0,0 +1,4 @@
|
|||
type Prename = String
|
||||
type Age = Double
|
||||
type Person = (Prename, Age)
|
||||
type Friends = [Person]
|
Loading…
Add table
Add a link
Reference in a new issue