Functors

added by DotNetKicks
3/23/2018 1:02:33 PM

2 Kicks, 325 Views

Not only does F map a from C to F a in D (and likewise for b), it also maps the function f to F f. Functors preserve the structure between objects. You'll often hear the phrase that a functor is a structure-preserving map. One example of this regards lists.


0 comments