Add functional methods to TStringList
Original Reporter info from Mantis: 007
-
Reporter name: lainz
Original Reporter info from Mantis: 007
- Reporter name: lainz
Description:
Hi, is possible to add functional methods like: filter, map, reduce and foreach for TStringList?
Here I wrote an unit that includes all these methods, plus others that can be handy to have too
https://github.com/lainz/FunctionalStringList/blob/master/ufunctionalstringlist.pas
Here is the test program
https://github.com/lainz/FunctionalStringList/blob/master/umain.pas
Mantis conversion info:
- Mantis ID: 36165
- OS: Windows
- OS Build: 10
- Platform: x64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43365 (#faee7895)
- Target version: 4.0.0