I'm often interested in generalizing functions, and one of the things I was thinking about recently was the concept of the Riemann definite integral as a function with some rather specific domains. It made me think and wonder about the generalization of the definite integral to the complex plane in the form of the contour integral, and I got to wondering how far this generalization extended, or could be extended.
The Riemann definite integral is usually expressed as:
$$I=\int_{a}^bf(x)\ \mathrm dx.$$
With a and b and I belonging to the reals and f(x) being some continuous function on the reals.
We could define it as a higher order function F(a,b, f) with domains of the reals for a and b and real valued functions for f and codomain of the reals. Now, we have seen these domains and codomains extended to complex numbers with contour integrals, but what other domains can definite integrals be extended to and still be something that is recognizably a definite integral?
Can they be extended to hypercomplex numbers, lie algebras, or various arbitrary algebraic structures and still be recognizably a 'definite integral?'