Your overall book give some nice insights about all the terminology surrounding FP, however I find some of your examples quite confusing, and this one is reprentative. Here, is the displayed Task content the actual result of the chained ap calls or a representation of what it will be when the renderPage will actually be called by manual trigger of task resolution? In other words, is a break of purity occurring or is this impression stemming from a lack of example clarity?
Would anyone mind expanding on the first sentence? I grasp the concept of parallel computing, but I guess I am confused by the notion of "encoding the order of evaluation", and how that affects the possibility of parallel calculations.
This is only true of the methods are simply namespaced. If the functions you are referencing use `this` inside of them, you change what `this` references. Of course, you could still just use binding and still have the code nearly as clean as the next example.
So, I didn't understand. In the original function if `player` and `target` are the same, there's no decrement of HP. But now, this would decrement the HP irrespective of whether the `target` is from the same team or not?