On Wednesday, April 19, 2000 1:00 PM, Tom Moran [SMTP:[log in to unmask]] wrote:
> The middle of a palindrome is also a palindrome, so one definition is:
> A zero length string is a palindrome.  Anything longer must
> have the first and last letter the same, and the in-between letters
> must be a palindrome.

So are you saying...

function Is_Palindrome (S : String) return Boolean is
    return S = "" or else
             (S (S'First) = S (S'Last) and
               Is_Palindrome (S (Natural'Succ (S'First) .. Natural'Pred
end Is_Palindrome;

"E"commerce is not life and death. If it was, it would be coded in Ada.
Steven Deller, Apex Ada Marketing
[log in to unmask], (410) 757 6924
Rational Software Corporation, http://www.rational.com
Apex email groups:  http://www.rational.com/products/apex/usergroups
Apex technical notes: