One learning from implementing the RPG Combat Kata in FP is that in
@sanctuaryjs we thought that pipe()
terminates execution if it receives a Nothing, but that's not the case. pipek()
does that:
https://github.com/codefreezefi/rpg-combat-kata-fp/commit/7a097d4fb470efb3b515abde2e4f878b74d7be6a#diff-e1d62d8c4965edf0e532dfa19da0891fR79
1 reply
Note that I try to have all rules about the actions in one place so it's easy to
reason about them.
Still not very satisfied with the readability.