concept statistic in category c#

appears as: The statistics, statistics, statistics
Real-World Functional Programming with Examples in F# and C#

This is an excerpt from Manning's book Real-World Functional Programming with Examples in F# and C#.

The statistics provided by the World Bank are available for individual countries, but they can also be grouped based on region or income. These aggregated statistics make it easier to see overall trends. The first thing we need to do is get the information about all the available groups. You can try this on the website using the Query Generator. First select the Countries option on the Country Calls tab and enter your API key. To get a list of aggregated country groups, you can choose Aggregates from the Region list and then run the request. Listing 13.6 shows how to run the same request using F# Interactive.

Equipped with the last two functions, we can collect statistics for all the regions ❹. The returned value is a sequence of tuples containing the title of the region as the first element and an array as the second element. The array will always have three elements with the values for the three years that we’re monitoring.