November 2017
Intermediate to advanced
670 pages
17h 35m
English
Category theory is results oriented. It's all about getting from A to C. The arrows are one-directional. When we compose the two paths (A → B and B → C), we get an equivalent path (A → C). That is what we are doing when we compose functions. We can call one Compose function (shown in the following snippet) rather than two functions (f and g):
func Compose(g Fss, f Fbs) Fbs { return func(x bool) string { return g(f(x)) }}