in reply to Challenge: Predictive Texting

All entries must support the same API to be considered.

So what's the API? Specifically:

Digits will be passed in one at a time.

To what are the digits passed?
To a program?
To a process?
To a function?

How are the digits passed?
By argument?
As a character on STDIN?
As a line on STDIN?

The expected return value will be...

How is the value returned?
Function return?
STDOUT with newline?

Update: Oops, I see that you've already partially answered this, and the rest can be deduced from that answer. (function/method, function argument, function return)

Replies are listed 'Best First'.
Re^2: Challenge: Predictive Texting
by Limbic~Region (Chancellor) on Jan 10, 2007 at 18:12 UTC
    ikegami,
    It never ceases to amaze me how much I assume. I regularly post challenges and interesting problems and inevitably there is confusion despite my best efforts at being clear and succinct. In any case, I hope things make sense now.

    Cheers - L~R