Tommi Prami 130 Posted May 11, 2021 Stumbled upon this. https://github.com/WilliCommer/ArrayHelper This really should be part of RTL already. Good job from author, If in RTL would not need add unit to the uses. (OR paste unit of one's own but...) -Tee- Share this post Link to post
David Heffernan 2345 Posted May 11, 2021 It's a helper for TArray, not for TArray<T>, by necessity. I think spring4d has something similar. 1 Share this post Link to post
Lars Fosdal 1792 Posted May 11, 2021 @Tommi Prami It would have been awesome if we could do helpers for generics. We can't. 1 Share this post Link to post
Stefan Glienke 2002 Posted May 12, 2021 (edited) GNU License 🤦♂️ Some of the methods in that helper are obsolete since XE7 because we have Insert, Add, Delete for dynamic arrays. Most of the other methods are in Spring.pas TArray which is not a helper for the System.Generics.Collections one but reimplements its methods and adds its own. For the TArrayRecord<T> type Spring.pas has Vector<T> (the naming is taken from C++ where this is the dynamic array type name) Edited May 12, 2021 by Stefan Glienke 2 Share this post Link to post