Generic Component: Views ...
- View type Vrec, which wraps Trec and defines
Macc, C0, and the name of Vitem. Vrec lists
myadder as a superclass so that it inherits generics that do
the work of sum.
- Titem, type of the item from with the summand is derived.
- A mapping Mitem: Titem &rarr Tacc that
specifies how to obtain the data to be summed from each item of
type Titem.
- A predicate Pitem: Titem &rarr {T,F}
that determines whether an item should be summed. Pitem
defaults to T.
- View type Vitem, which wraps Titem and defines
Mitem and Pitem.
Clearly, it is necessary to produce most of this automatically,
or the component will be too hard to reuse.
Contents   
Page-10   
Prev   
Next   
Page+10   
Index