[Racket] Ferti hydroponic nutrient solver, redux.
Use clutch between/c contract for percentages!
models/crop-requirement.rkt
@@ -15,8 +15,7 @@
15
15
[get-crop-requirement-value (-> crop-requirement-or-id/c nutrient? maybe-nutrient-value?)]
16
16
[delete-crop-requirement! (-> crop-requirement-or-id/c void?)]
17
17
[average-crop-requirement-nutrient-values
18
Removed:
(-> (listof (cons/c crop-requirement? (and/c real? (>=/c 0) (<=/c 100))))
19
Removed:
nutrient-value-hash/c)]))
18
Added:
(-> (listof (cons/c crop-requirement? (between/c 0 100))) nutrient-value-hash/c)]))
20
19
21
20
(require racket/contract
22
21
db