Can I write a program that returns a value to TI-Basic?

Previous TI-Basic and C Next

Q: Is it possible to write a program which will return a value to TI-Basic, i.e. which acts like functions in TI-Basic?

This is easy, was implemented a long time ago, and is described on the starting page of the documentation.