Reorganize the helper functions

This commit is contained in:
Ivaylo Ivanov 2021-11-10 18:53:19 +01:00
parent 79815796af
commit 4c52091515
1 changed files with 12 additions and 12 deletions

View File

@ -175,6 +175,18 @@ Helper functions:
> Gutschrift _ _ -> True
> _ -> False
> is_p_credit :: AP_Geschaeftsvorfall -> Bool
> is_p_credit g =
> case g of
> P_Gutschrift _ _ -> True
> _ -> False
> is_k_credit :: K_Geschaeftsvorfall -> Bool
> is_k_credit g =
> case g of
> K_Gutschrift _ _ -> True
> _ -> False
===================================================================================
Aufgabe A.1
@ -315,12 +327,6 @@ Nur Werte zwischen 0 und 99 fuer cent!
> in
> K_Zahlung res (zahlungsdatum g)
> is_p_credit :: AP_Geschaeftsvorfall -> Bool
> is_p_credit g =
> case g of
> P_Gutschrift _ _ -> True
> _ -> False
===================================================================================
Aufgabe A.3
@ -375,12 +381,6 @@ Aufgabe A.3
> (g,v) = x
> is_k_credit :: K_Geschaeftsvorfall -> Bool
> is_k_credit g =
> case g of
> K_Gutschrift _ _ -> True
> _ -> False
===================================================================================
Aufgabe A.4