<div>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.</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">thrice :: a -> [a]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">thrice x = [x, x, x]</font></div><div><br></div><div>I know the answer involves generics, but the docs don't offer examples using Free Pascal's built-in generic types.</div>
<div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>