don't understand how it works and when to use it.
https://castle-engine.io/modern_pascal#generic-containers-section https://wiki.freepascal.org/Generics
There is a certain class of tasks that are common regardless of what type of data (Strings, various class, Integers etc) is used: for example, maps, lists, pairs, etc. In order not to write an implementation for each type, generics are declared, and in the code you simply specify a specific specialization
Обсуждают сегодня