From 28d595fef6d96557c3d318bc63e716dcebba282d Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 5 Apr 2017 21:26:31 +0200 Subject: Add glycemic index indicator --- src/Food.purs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/Food.purs') diff --git a/src/Food.purs b/src/Food.purs index b1e3d29..19b667c 100644 --- a/src/Food.purs +++ b/src/Food.purs @@ -18,8 +18,12 @@ glycemicLoad aliment = toNumber aliment.glycemicIndex * toNumber aliment.carbohy all :: Array Aliment all = - [ { name: "oignon", glycemicIndex: 15, carbohydrates: 9 } - , { name: "olive", glycemicIndex: 15, carbohydrates: 6 } - , { name: "haricot rouge", glycemicIndex: 35, carbohydrates: 24 } - , { name: "haricot blanc", glycemicIndex: 35, carbohydrates: 13 } + [ { name: "oignons", glycemicIndex: 15, carbohydrates: 9 } + , { name: "olives", glycemicIndex: 15, carbohydrates: 6 } + , { name: "haricots rouges", glycemicIndex: 35, carbohydrates: 24 } + , { name: "haricots blancs", glycemicIndex: 35, carbohydrates: 13 } + , { name: "pommes de terres (cuites avec leur peau)", glycemicIndex: 70, carbohydrates: 37 } + , { name: "lentilles vertes", glycemicIndex: 30, carbohydrates: 30 } + , { name: "lentilles corail", glycemicIndex: 21, carbohydrates: 48 } + , { name: "riz basmatti", glycemicIndex: 58, carbohydrates: 25 } ] -- cgit v1.2.3