Here’s a concrete example: I’m using a 3rd party l...
# getting-started
e
Here’s a concrete example: I’m using a 3rd party library that has a
Document
class, and my class operates on an instance of that
Document
. I added an extension function to
Document
to aggregate two other properties on
Document
and do a simple transform to the aggregation, returning a sequence of these transformed values. It’s really only used in one place, but since that block of code operates on data in
Document
more than anything else, it felt like it would be more clear to be an extension