In our previous episode, Andrew Pennebaker said:
> 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.

There is no built in list type, generic or not, and no way to define new
operators.  All list and collection types are library.  I see no way this
could work.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to