November 2017
Intermediate to advanced
670 pages
17h 35m
English
Our Unit function is our identity function. When applied to elements in the slice, it will have no effect. It's trivial, but it's a requirement to satisfy the functor algebraic laws:
var Unit = func(i int) int { return (i)}