[fpc-pascal] Pascals unit for associate arrays?

Marco van de Voort marcov at stack.nl
Tue Sep 11 09:54:13 CEST 2007


> Is there any unit, or built in functionality, to do the equivalent of 
> perl's associate arrays or Python's dictionaries?
> 
> 
> What I am trying todo is to parse some lines and to store ocurrences of 
> certain strings.
> 
> For example
> string1
> string2
> string1
> string3
> string2
> 
> What I want to do is to create an entry string1 and count all string1 one 
> ocurrences, the same for each different string. In the end I would have
> string1 2
> string2 2
> string3 1

Have a look at Decal in contribs svn.



More information about the fpc-pascal mailing list