I just found myself writing some code like this:
processFoo processBar = toFoo . processBar . fromFoo
where
fromFoo foo = ...
toFoo bar = ...
and noticed some similarity in style to certain kinds of transformation
used in linear algebra, such as for
So my questions are:
(a) is there a common functional programming pattern that corresponds to
vector space transformations so that a function defined over one space can
be used in another, and
(b) if so, are there any not-too-heavy papers or articles discussing this
pattern?
Many times