dimanche 16 mai 2021

Haskell check if a person age >50

Hello im new in haskell and looking for function check if person age is >50

type Home = (Homename)
type Homename = String
type Person = (Name, Age, [Home], Numb)
type Name = String
type Age = Integer
type Numb = Integer
list :: [Person]
list = [("Frank"  ,24,["wall", "door"],1),
        ("Ann"    ,45,["window"],0),
        ("Claudia",44,["window", "bed"],2),
        ("Pedro"  ,77,["wall"],1)]

i was looking for it but cant find anything how to do that

Aucun commentaire:

Enregistrer un commentaire