Haskell lets you define functions like thrice, which accepts an element of type a and returns a list of the element repeated three times, for any data type a.
thrice :: a -> [a] thrice x = [x, x, x] I know the answer involves generics, but the docs don't offer examples using Free Pascal's built-in generic types. Cheers, Andrew Pennebaker www.yellosoft.us
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal