From 55269ce15f650c15a96b5273e216a137dcb0d291 Mon Sep 17 00:00:00 2001 From: Tlekbai Ali Date: Tue, 23 Jun 2020 12:03:43 +0600 Subject: [PATCH 1/2] Update README.md Add clarifications on function parameters and function description. --- subjects/curry-entries/README.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/subjects/curry-entries/README.md b/subjects/curry-entries/README.md index e329da8b..4747dcab 100644 --- a/subjects/curry-entries/README.md +++ b/subjects/curry-entries/README.md @@ -2,25 +2,22 @@ ### Instructions -This exercise consists in creating curry functions to apply in the objects -entries. +This exercise consists of creating curry functions to apply in the object's entries. You will have to create the following curry functions: -- `defaultCurry` that will curry two objects in witch the second object must -be the default object and returns a new object with the modifications applied -by the first object -- `mapCurry` that replicate the function `.map` -- `reduceCurry` that replicate the function `.reduce` -- `filterCurry` that replicate the function `.filter` +- `defaultCurry` curries two objects in which the second object overrides the values of the first. If the key is not present then add it with the corresponding value. +- `mapCurry` replicates function `.map`, where first entry is function, second is object. +- `reduceCurry` replicates function `.reduce`, where first entry is function, second is (object, initial value). +- `filterCurry` replicates function `.filter`, where first entry is function, second is object. -You will also have to create for each curry function the following: +You have to create for each curry function the following functions with one parameter `personnel`: - `reduceScore` that will return the total value of the scores - of the persons who use the force + of the persons who use the force. - `filterForce` that will return the force users with `shootingScores` equal or higher than 80 - `mapAverage` that will return a new object with the propriety `averageScore` - that is the averages of the scores for each person + that is the average of the scores for each person ### Notions From 00bfaa0b40c482b18b7f0da84f7d926ab9cca541 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Tue, 23 Jun 2020 09:46:51 +0100 Subject: [PATCH 2/2] Update README.md --- subjects/curry-entries/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/curry-entries/README.md b/subjects/curry-entries/README.md index 4747dcab..7ac7ead7 100644 --- a/subjects/curry-entries/README.md +++ b/subjects/curry-entries/README.md @@ -2,7 +2,7 @@ ### Instructions -This exercise consists of creating curry functions to apply in the object's entries. +This exercise consists in creating curry functions to apply in the object's entries. You will have to create the following curry functions: - `defaultCurry` curries two objects in which the second object overrides the values of the first. If the key is not present then add it with the corresponding value. @@ -13,7 +13,7 @@ You will have to create the following curry functions: You have to create for each curry function the following functions with one parameter `personnel`: - `reduceScore` that will return the total value of the scores - of the persons who use the force. + of the persons who use the force - `filterForce` that will return the force users with `shootingScores` equal or higher than 80 - `mapAverage` that will return a new object with the propriety `averageScore`