diff --git a/even-more-functions.rst b/even-more-functions.rst index 9f6d1ed..400463d 100644 --- a/even-more-functions.rst +++ b/even-more-functions.rst @@ -31,7 +31,7 @@ type (``int``) yet their *values* are different. Paul and Sam are both of the same "human" type, yet their "values" (beliefs, jobs, weight...) are different. The function's body, what it actually does, is what makes the difference between -two functions of the same type. Just like how many coffees you can by with 1 +two functions of the same type. Just like how many coffees you can buy with 1 dollar or 23 dollars. Same thing for functions: What they do, their bodies, is what differentiate two @@ -76,7 +76,7 @@ Functions of the same type are values of this type! This means: You can declare a variable of a given function-type and assign any function of the same type to it. You can pass functions as parameters to other functions, you can also have functions that return other functions as results... And this, my friend, offers -a lot of beautiful, intellignt and powerful opportunities! Let me show you some +a lot of beautiful, intelligent and powerful opportunities! Let me show you some examples (don't worry, this doesn't result in Skynet... quite...). **Example 1**: Write a program which when given a slice of integers will return