Now, we could use a mutable record for the webapp type, so that we use it for interesting app data that keeps updating. One such data point is the number of accounts created. Another one could be the number of downloads of the corresponding mobile app.
In this example, let's see how we can improve our implementation by adding the number of accounts parameter to the record. This is done by using mutable numberOfAccounts: int as the entry for that parameter in the record definition.
So that's the only change for now, but let's recap the definitions for the webapp type, the pfcompany type, and the appToString function for better readability, as follows:
type webapp = {
name: string,
url: string,
mutable numberOfAccounts: int,
};
type pfcompany = [ `Facebook(string)
| `Google...