From d359e1d6203728783c97ed1313e62088dd44f386 Mon Sep 17 00:00:00 2001 From: Joris Date: Fri, 21 Apr 2017 17:31:50 +0200 Subject: Sort table by clicking on the header --- src/Food.purs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Food.purs') diff --git a/src/Food.purs b/src/Food.purs index 8a6bb57..2ced271 100644 --- a/src/Food.purs +++ b/src/Food.purs @@ -13,8 +13,6 @@ type Aliment = , carbohydrates :: Int -- for 100 grams } --- let @a = 'I , { name: "A", glycemicIndex: TDTf Xdf i, carbohydrates: f XL }t^' - glycemicLoad :: Aliment -> Number glycemicLoad aliment = toNumber aliment.glycemicIndex * toNumber aliment.carbohydrates / 100.0 @@ -63,7 +61,7 @@ all = , { name: "Choux romanesco", glycemicIndex: 15, carbohydrates: 2 } , { name: "Choux rouge", glycemicIndex: 15, carbohydrates: 7 } , { name: "Choux vert", glycemicIndex: 15, carbohydrates: 1 } - , { name: "citron", glycemicIndex: 20, carbohydrates: 3 } + , { name: "Citron", glycemicIndex: 20, carbohydrates: 3 } , { name: "Citron vert", glycemicIndex: 20, carbohydrates: 7 } , { name: "Citrouille", glycemicIndex: 80, carbohydrates: 6 } , { name: "Clémentine", glycemicIndex: 30, carbohydrates: 9 } @@ -164,6 +162,7 @@ all = , { name: "Nectar de mangue", glycemicIndex: 50, carbohydrates: 12 } , { name: "Nectarine", glycemicIndex: 35, carbohydrates: 13 } + , { name: "Noisette", glycemicIndex: 25, carbohydrates: 17 } , { name: "Noix de cajou", glycemicIndex: 15, carbohydrates: 21 } , { name: "Noix de coco", glycemicIndex: 35, carbohydrates: 10 } , { name: "Noix de coco râpée", glycemicIndex: 35, carbohydrates: 12 } @@ -181,7 +180,7 @@ all = , { name: "Pain aux raisins", glycemicIndex: 70, carbohydrates: 46 } , { name: "Pain au chocolat", glycemicIndex: 65, carbohydrates: 49 } , { name: "Pain complet", glycemicIndex: 65, carbohydrates: 44 } - , { name: "pain hamburger complet", glycemicIndex: 48, carbohydrates: 48 } + , { name: "Pain hamburger complet", glycemicIndex: 48, carbohydrates: 48 } , { name: "Pastèque", glycemicIndex: 75, carbohydrates: 7 } , { name: "Pâte", glycemicIndex: 70, carbohydrates: 20 } , { name: "Pâte de fruit", glycemicIndex: 70, carbohydrates: 53 } -- cgit v1.2.3