diff options
author | Joris | 2017-04-21 17:31:50 +0200 |
---|---|---|
committer | Joris | 2017-04-21 17:31:50 +0200 |
commit | d359e1d6203728783c97ed1313e62088dd44f386 (patch) | |
tree | 1841f31f6c97cdf3ae453c803915083dab37460d /src/Food.purs | |
parent | b7a00a27d50353f53bd5e74a0c67f1a238518cb7 (diff) |
Sort table by clicking on the header
Diffstat (limited to 'src/Food.purs')
-rw-r--r-- | src/Food.purs | 7 |
1 files changed, 3 insertions, 4 deletions
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 } |